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

---

# Error establishing database connection

 *  [hankbutehorn](https://wordpress.org/support/users/hankbutehorn/)
 * (@hankbutehorn)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-4-2/)
 * Every time I try to access my website I get this error message
 * 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.
 * Are you sure you have the correct username and password?
    Are you sure that you
   have typed the correct hostname? Are you sure that the database server is running?
 * What does this mean, and how do I fix it?

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [hankbutehorn](https://wordpress.org/support/users/hankbutehorn/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-4-2/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
