wordpress

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?

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.