Title: Error establishing a database connection
Last modified: August 30, 2016

---

# Error establishing a database connection

 *  [eweEcho](https://wordpress.org/support/users/eweecho/)
 * (@eweecho)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-727/)
 * I know, an old topic but I can’t get anywhere!
    Site worked fine after last changes.
   Now it doesn’t. Could this be due to an automatic WP update? wp-config.php looks
   ok to me. Ha. Version is fairly new & has been updated when I’m on, but haven’t
   been on in awhile and don’t remember the version.
 * [http://unrepentantartist.com](http://unrepentantartist.com)

Viewing 1 replies (of 1 total)

 *  [petercralen](https://wordpress.org/support/users/petercralen/)
 * (@petercralen)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-727/#post-6720786)
 * Hi,
 * Double check if your credentials for database – database name, user, password
   in config.php are the same like in your hosting database. Also check in your 
   hosting if database is still there.

Viewing 1 replies (of 1 total)

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [petercralen](https://wordpress.org/support/users/petercralen/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-727/#post-6720786)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
