Title: Database crashed?
Last modified: August 30, 2016

---

# Database crashed?

 *  [Christopher Field](https://wordpress.org/support/users/pittsburghchris/)
 * (@pittsburghchris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/database-crashed-5/)
 * Hi,
 * I ran WP-Optimize on a local WordPress installation and then got an “Error establishing
   a database connection”message.
 * WordPress tried to help me out by offering to repair the database, and I did 
   try that. After clicking the WordPress repair button, I was given the following
   error with instructions to post on this forum for assistance. The error was:
 * wp_users: Table is marked as crashed and last repair failed
    wp_usermeta: Table
   is marked as crashed and last repair failed wp_posts: Table is marked as crashed
   and last repair failed wp_options: Table is marked as crashed and last repair
   failed wp_postmeta: Table is marked as crashed and last repair failed wp_terms:
   Table is marked as crashed and last repair failed wp_term_taxonomy: Table is 
   marked as crashed and last repair failed wp_term_relationships: Table is marked
   as crashed and last repair failed
 * I do have access to the tables via PHPMyAdmin, but I do not know where to start
   to make fixes, or even if a fix is possible.
 * Can anyone lend any insight to how to repair the DB tables?
 * If so, many thanks!
 * Chris

Viewing 1 replies (of 1 total)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/database-crashed-5/#post-6256823)
 * Phpmyadmin probably won’t repair tables if the last repair failed by that plugin;
   you need to use mysqlcheck on the command line. See [http://www.thegeekstuff.com/2011/12/mysqlcheck/](http://www.thegeekstuff.com/2011/12/mysqlcheck/)

Viewing 1 replies (of 1 total)

The topic ‘Database crashed?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/database-crashed-5/#post-6256823)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
