Title: Error in database connection
Last modified: August 18, 2016

---

# Error in database connection

 *  [cacanela](https://wordpress.org/support/users/cacanela/)
 * (@cacanela)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/error-in-database-connection/)
 * > Error establishing a database connection
   > This either means that the username and password information in your wp-config.
   > php file is incorrect or we can’t contact the database server at localhost.
   > This could mean your host’s database server is down.
 * Username and password checked, I think that problem should be with localhost,
   because it’s installed in a sub-domain…

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/error-in-database-connection/#post-581094)
 * If it is ‘localhost’ – then it’s localhost for subdomains, too.
    Check for spaces,
   upper/lower case, right spelling…

Viewing 1 replies (of 1 total)

The topic ‘Error in database connection’ is closed to new replies.

## Tags

 * [databases](https://wordpress.org/support/topic-tag/databases/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/error-in-database-connection/#post-581094)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
