If you manually installed WordPress into your hosting account (e.g. did not install it via Fantastico in your Cpanel) and are getting an “Error establishing a database connection” message when trying to connect to WordPress, you need to modify your wp-config.php file in order to work with our Database servers.
View article:
WordPress unable to connect to database