WordPress – “One or more database tables are unavailable. The database may need to be repair”

Is your site on self-hosted WordPress? Have you ever received in an error that says, “One or more database tables are unavailable. The database may need to be repair”? And does it happen in the front-end and/or back-end?

7-wp-admin-error-check WordPress - "One or more database tables are unavailable. The database may need to be repair"

This is how you fix it:

  1. Go to your back-end of your site via FTP
  2. Go into your website directory
  3. Under the WordPress directory root, go to the wp-config.php file
  4. And add this line of code:
define('WP_ALLOW_REPAIR', true);

And viola! Your site should be working.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.