How do I repair an InnoDB table?

lefticus picture lefticus · Oct 22, 2008 · Viewed 162.4k times · Source

We (apparently) had poorly executed of our Solaris MySQL database engine last night. At least some of the InnoDB tables are corrupted, with timestamp out of order errors in the transaction log, and a specific error about the index being corrupted.

We know about the tools available for MyISAM table repairs, but cannot find anything for InnoDB.

Side note: attempting a table optimize (in my attempt to rebuild the corrupted index) causes the database server to crash.

Answer

Jon Topper picture Jon Topper · Oct 22, 2008

First of all stop the server and image the disc. There's no point only having one shot at this. Then take a look here.