WordPress in a constant error loop.

When I try to log in I'm told to repair the databases.

Here is the sequence

  1. Error reports: "One or more database tables are unavailable. The database may need to be repaired"

  2. I follow the command which is to add this to my wp-config.php file define('WP_ALLOW_REPAIR', true);

  3. I do the above and the database is repaired, and as instructed I remove and command added above; try to log in and the loop continues...

Any idea how to fix this?


  • 1
    Not without checking your database =) Do you have access to you database from the command line or perhaps from phpMyAdmin? Nov 17, 2018 at 12:42
  • Don't have an answer of my own, but for anyone who appears here, there are some options to try on this page: scalahosting.com/kb/…
    – Lisa
    Jul 29, 2022 at 6:09

1 Answer 1


You could try to repair all tables using the mysqlcheck command:

mysqlcheck --repair --databases <YOURDATABASE>

I would also try to disable any plugins and see if that solves the problem. Perhaps also switching to another theme.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.