Title: WordPress database error &#8211; Table &#8216;wp_comments&#8217;
Last modified: August 18, 2016

---

# WordPress database error – Table ‘wp_comments’

 *  [vmgbpo](https://wordpress.org/support/users/vmgbpo/)
 * (@vmgbpo)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/wordpress-database-error-table-wp_comments/)
 * I am getting this message in the admin area:
 * WordPress database error: [Table ‘wp_comments’ is marked as crashed and last (
   automatic?) repair failed]
    SELECT COUNT(*) FROM wp_comments WHERE comment_approved
   = ‘0’
 * The site is working fine though. Is there a way correct this error ?

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/wordpress-database-error-table-wp_comments/#post-657461)
 * See if you can manually repair the table with [phpMyAdmin](http://codex.wordpress.org/phpMyAdmin).
 * Paul has a quick howto:
    [http://paulstamatiou.com/2006/05/31/how-to-quickie-repair-mysql-tables-in-phpmyadmin/](http://paulstamatiou.com/2006/05/31/how-to-quickie-repair-mysql-tables-in-phpmyadmin/)
 *  [Microdot](https://wordpress.org/support/users/microdot/)
 * (@microdot)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/wordpress-database-error-table-wp_comments/#post-657627)
 * I’m having this problem but the quick howto didn’t work..
 * Here’s the error I get:
 * WordPress database error: [Table ‘wp_comments’ is marked as crashed and should
   be repaired]
    SELECT COUNT(*) FROM wp_comments WHERE comment_approved = ‘0’
 * WordPress database error: [Table ‘wp_comments’ is marked as crashed and should
   be repaired]
    SELECT COUNT(comment_ID) FROM wp_comments WHERE comment_approved
   = ‘spam’

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

The topic ‘WordPress database error – Table ‘wp_comments’’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 3 participants
 * Last reply from: [Microdot](https://wordpress.org/support/users/microdot/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/wordpress-database-error-table-wp_comments/#post-657627)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
