Title: Error establishing a database
Last modified: August 19, 2016

---

# Error establishing a database

 *  [ecotech1](https://wordpress.org/support/users/ecotech1/)
 * (@ecotech1)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/error-establishing-a-database-1/)
 * i get this message and im sure i have the username and password right,any ieas
   of what can i do?
 * 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.

Viewing 1 replies (of 1 total)

 *  [Equal](https://wordpress.org/support/users/equalmark/)
 * (@equalmark)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/error-establishing-a-database-1/#post-1278341)
 * 99 times out of 100 there is an error with your database details. Double and 
   triple check them. Also check that your database is localhost and not served 
   from somewhere else. Some hosts do it this way.

Viewing 1 replies (of 1 total)

The topic ‘Error establishing a database’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 2 participants
 * Last reply from: [Equal](https://wordpress.org/support/users/equalmark/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/error-establishing-a-database-1/#post-1278341)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
