Title: WordPress loses connection to database
Last modified: August 19, 2016

---

# WordPress loses connection to database

 *  [kewalter](https://wordpress.org/support/users/kewalter/)
 * (@kewalter)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wordpress-loses-connection-to-database/)
 * Self-hosted server – WAMP
 * WordPress will be working fine for a few hours to a day, then suddenly I get 
   the “Error establishing connection to the database” error. All the config settings
   are correct, as it was working for awhile. I have to restart the server for wordpress
   to start working again.
 * Phpmyadmin still works and can see the database while this is happening, and 
   I don’t see any mysql or apache errors that would be causing this.

The topic ‘WordPress loses connection to database’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [kewalter](https://wordpress.org/support/users/kewalter/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/wordpress-loses-connection-to-database/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
