views:

11482

answers:

3

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.

+3  A: 

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.

Jon Topper
A: 

stop your application...or stop your slave so no new rows are being added

create table like ; insert select * from ; truncate table ; insert select * from ;

restart your server or slave

Sandro Frattura
+1  A: 

last post did not format properly

stop your application...or stop your slave so no new rows are being added

create table --new table-- like --old table--;

insert-new table-- select * from --old table--;

truncate table --old table--;

insert --old table-- select * from --new table--;

restart your server or slave

Sandro Frattura