Title: Database Repair
Last modified: August 31, 2016

---

# Database Repair

 *  [Thurston Pope](https://wordpress.org/support/users/thurston-pope/)
 * (@thurston-pope)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-repair-23/)
 * So wordpress updated (again) and my website crashed (again). This time it says‘
   cannot establish database connection and sends me to repair it. It asks me to
   add the following to my wp-config.php
 * define(‘WP_ALLOW_REPAIR’, true);
 * So I do so, refresh the page ANNNDDDD… nothing. I’ve look up other people on 
   how they do it and it seems it’s supposed to be as simple as add the line, refresh
   the page, and it give you more options but that just isn’t the case for me.
 * Any help would be GREATLY appreciated. Thanks in advance for any and all help!
 * P.S. my website is yingshangeducation.com and I’d be happy to offer any info 
   that anyone may need.

Viewing 1 replies (of 1 total)

 *  [Bob Cristello](https://wordpress.org/support/users/gntmidnight/)
 * (@gntmidnight)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-repair-23/#post-6921550)
 * I would probably go through the following steps to start.
 * 1. Verify that you have the correct credentials in your wp-config.php file for
   the MySQL database.
    2. Log into your control panel and make sure you can see
   the Database using phpmyadmin or whatever tool your hosting company uses. 3. 
   Attempt to repair the database through your control panel manually ( [https://www.siteground.com/tutorials/phpmyadmin/phpmyadmin_optimize_database.htm](https://www.siteground.com/tutorials/phpmyadmin/phpmyadmin_optimize_database.htm))
 * There is further information, with more suggestions, in this post here:
 * [https://wordpress.org/support/topic/error-establishing-a-database-connection-171?replies=20](https://wordpress.org/support/topic/error-establishing-a-database-connection-171?replies=20)

Viewing 1 replies (of 1 total)

The topic ‘Database Repair’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [down](https://wordpress.org/support/topic-tag/down/)
 * [repair](https://wordpress.org/support/topic-tag/repair/)
 * [troubleshooting](https://wordpress.org/support/topic-tag/troubleshooting/)
 * [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: [Bob Cristello](https://wordpress.org/support/users/gntmidnight/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/database-repair-23/#post-6921550)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
