Are there uncommon ways to repair a corrupt MySQL table? I have a MySQL database that is experiencing some serious corruption. Using the
, I have repaired all of the tables but one. No matter how many ways I try those instructions on the ornery table, in all cases either a) nothing happens or b) the data file is emptied, which is, obviously, not the result I want.
I linked to the instructions above because I wanted to make it plain I have tried *all* of the instructions there, on two different servers (one BSD, one Mac OS X), and have had no joy including use of "REPAIR TABLE tbl_name USE_FRM"). Also, I do not have a good backup. I have only the corrupt database table to work with (it's somebody else's server--they are highly unsavvy).
In its default corrupt state, I get the following when I check the file:
check warning Size of datafile is: 4791392 Should be: 0
check error Wrong bytesec: 0-0-0 at linkstart: 0
check error Corrupt
The "should be" size is wrong. This means there's some discrepancy between the MYD, MYI, and .FRM files. If I repair the file with MySQL, I get
repair info Wrong bytesec: 0- 0- 0 at 0; Skipped
repair status OK
This makes the file 0 bytes, which is wrong. Then I restore the copy of the corrupt file and try all the steps on the
MySQL repair page. They do not solve the problem, so I am looking for other ideas and other solutions.
Please include all that you've done, by copying the shell/ mysql command command and any output.
posted by orthogonality at 2:13 PM on November 15, 2008