Title: WordPress database error
Last modified: August 19, 2016

---

# WordPress database error

 *  [seanmcconeghy](https://wordpress.org/support/users/seanmcconeghy/)
 * (@seanmcconeghy)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/wordpress-database-error-28/)
 * I haven’t made any changes outside of updates to my blog for a while, but I’ve
   had a new problem the last couple of days. At the top of all my admin pages, 
   I get the following:
 * WordPress database error: [Table ‘./republi2_wrdp1/wp_comments’ is marked as 
   crashed and last (automatic?) repair failed]
    SELECT COUNT(*) FROM wp_comments
   WHERE comment_approved = ‘0’
 * WordPress database error: [Table ‘./republi2_wrdp1/wp_comments’ is marked as 
   crashed and last (automatic?) repair failed]
    SELECT COUNT(comment_ID) FROM wp_comments
   WHERE comment_approved = ‘spam’
 * On my dashboard, I get this where the comments are supposed to be in the righthand
   sidebar:
 * WordPress database error: [Table ‘./republi2_wrdp1/wp_comments’ is marked as 
   crashed and last (automatic?) repair failed]
    SELECT comment_author, comment_author_url,
   comment_ID, comment_post_ID FROM wp_comments WHERE comment_approved = ‘1’ ORDER
   BY comment_date_gmt DESC LIMIT 5
 * WordPress database error: [Table ‘./republi2_wrdp1/wp_comments’ is marked as 
   crashed and last (automatic?) repair failed]
    SELECT COUNT(*) FROM wp_comments
   WHERE comment_approved = ‘0’
 * And instead of my blogstats section, I get this:
 * WordPress database error: [Table ‘./republi2_wrdp1/wp_comments’ is marked as 
   crashed and last (automatic?) repair failed]
    SELECT COUNT(*) FROM wp_comments
   WHERE comment_approved = ‘1’
 * There are currently 760 posts and comments, contained within 119 categories.
 * I know nothing about coding and am hosted by Bluehost. Can anyone tell me how
   to resolve these issues?

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

 *  [kulpreetsingh](https://wordpress.org/support/users/kulpreetsingh/)
 * (@kulpreetsingh)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/wordpress-database-error-28/#post-769965)
 * Do you have some sort of comments plugin or widget?
 * Perhaps try to disable it and then refresh and check.
 *  Thread Starter [seanmcconeghy](https://wordpress.org/support/users/seanmcconeghy/)
 * (@seanmcconeghy)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/wordpress-database-error-28/#post-770204)
 * I have the standard WordPress comment set up, nothing fancy.
 *  [Jon](https://wordpress.org/support/users/jonpaulwade/)
 * (@jonpaulwade)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-28/#post-770354)
 * Was this resolved? I am new to WordPress, so keen to know if this sort of problem
   is common.
 *  [mishko](https://wordpress.org/support/users/mishko/)
 * (@mishko)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wordpress-database-error-28/#post-770399)
 * I recently had this error show up on my WP 2.2 blog.
 * To fix it:
    I tried upgrading Akismet to the latest (always good to do anyway)…
   that didn’t do it.
 * then I **logged into Mysql PHPMyAdmin and did a repair table** on the wp_comments
   table. (ie. check box related to wp_comments and choose repair table from drop
   down menu.) When I refreshed the dashboard, the error message was gone.
    YAY!
 * HTH
 * ps. this was the first time i’ve ever came across this error. I’ve been using
   wordpress for about 2 years at this point, with many installs under my belt.
 *  [bernardborealis](https://wordpress.org/support/users/bernardborealis/)
 * (@bernardborealis)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wordpress-database-error-28/#post-770400)
 * This is definitely an error related to a corrupt database table. As mishko properly
   suggested, open up phpmyadmin, select your table, or check all tables, and, with
   selected, click repair.
 * When you are done with that, backup your database and store it somewhere safe.
   If, for some reason, a table gets corrupt beyond repairing, it is nice to have
   a database backup you can restore from.

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

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

## Tags

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
