Title: Database connection error
Last modified: August 19, 2016

---

# Database connection error

 *  [nick_nielsen](https://wordpress.org/support/users/nick_nielsen/)
 * (@nick_nielsen)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/database-connection-error-5-2/)
 * I’m getting “error connecting to database” both when trying to connect to admin
   and when trying to go to site in my browser.
    config.php does not appear in any
   way corrupted and the site worked fine for 9 months until this morning – any 
   ideas ?
 * i have been getting these messages from within admin – service provider says 
   it is because of maintenance – and now he says that any “e-mail notification 
   scripts” might be a problem. Things are on hold as I wait for a response to “
   If I can’t get into WP I can’t turn them off !”

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/database-connection-error-5-2/#post-1019390)
 * usually when that happens it means the `wp_options` table has crashed in the 
   database
    run a repair on it with host’s phpmyadmin
 *  Thread Starter [nick_nielsen](https://wordpress.org/support/users/nick_nielsen/)
 * (@nick_nielsen)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/database-connection-error-5-2/#post-1019498)
 * Actually the webhost admitted he was at fault…
 * this being said
    1. What does the wp-options table control ?
    2. How do you put it right
 * I’m having to learn more than I want to know !

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Database connection error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [nick_nielsen](https://wordpress.org/support/users/nick_nielsen/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/database-connection-error-5-2/#post-1019498)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
