Title: Database damaged
Last modified: August 31, 2016

---

# Database damaged

 *  [William Bowles](https://wordpress.org/support/users/creative-i/)
 * (@creative-i)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/database-damaged/)
 * Tried to access the site this am and got this message:
 * To allow use of this page to automatically repair database problems, please add
   the following line to your wp-config.php file. Once this line is added to your
   config, reload this page.
 * define(‘WP_ALLOW_REPAIR’, true);
 * So, I modified the config file and reloaded the page and got this:
 * The wp_users table is fine.
    The wp_users table is already optimised.
 * The wp_usermeta table is fine.
    The wp_usermeta table is already optimised.
 * The wp_posts table is fine.
    The wp_posts table is already optimised.
 * The wp_comments table is fine.
    The wp_comments table is already optimised.
 * The wp_links table is fine.
    The wp_links table is already optimised.
 * The wp_options table is not okay. It is reporting the following error: Table 
   is marked as crashed and last repair failed. WordPress will attempt to repair
   this table…
    Failed to repair the wp_options table. Error: Table is marked as
   crashed and last repair failed
 * The wp_postmeta table is fine.
 * The wp_terms table is fine.
 * The wp_term_taxonomy table is fine.
 * The wp_term_relationships table is fine.
 * The wp_termmeta table is fine.
 * The wp_commentmeta table is fine.
 * Some database problems could not be repaired. Please copy-and-paste the following
   list of errors to the WordPress support forums to get additional assistance.
 * –
    wp_options: Table is marked as crashed and last repair failed

Viewing 1 replies (of 1 total)

 *  Thread Starter [William Bowles](https://wordpress.org/support/users/creative-i/)
 * (@creative-i)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/database-damaged/#post-7383927)
 * Update:
 * Well, apparently wp_options is NOT damaged! I think perhaps there’s a bug in 
   the latest version of WP? This from my hosting co:
 * The wp_options table on the database liamb2 is fine;
 *     ```
       mysql> check table liamb2.wp_options;
       +-------------------+-------+----------+----------+
       | Table 	    | Op    | Msg_type | Msg_text |
       +-------------------+-------+----------+----------+
       | liamb2.wp_options | check | status   | OK	  |
       +-------------------+-------+----------+----------+
       ```
   

Viewing 1 replies (of 1 total)

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [William Bowles](https://wordpress.org/support/users/creative-i/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/database-damaged/#post-7383927)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
