Corrupt WordPress Database

You’re probably running into the joys of MySQL’s MyISAM engine…

From within MySQL (or PhpMyAdmin), use REPAIR TABLE xyz statements again, repeatedly, on each of your tables (or rather, your terms related tables, since these are the ones that sound corrupt) to see if this solves anything.

If those fail, there are a few documented workarounds:

http://www.google.com/search?q=recover+a+corrupt+mysql+database

Once things are recovered, run OPTIMIZE TABLE xyz statements on each table, and then alter the engine of the database and each table to make it use InnoDB. InnoDB clutters the catalog somewhat (especially if you drop a database or large tables), but — being ACID compliant — it’s a hell of a lot less error prone than MyISAM.

Leave a Comment