MySQL Forums
Forum List  »  MyISAM

Re: Incorrect key file for table 'XXX.MYI'; try to repair it
Posted by: Rick James
Date: April 14, 2010 11:06PM

Has the server crashed (eg, power failure)? You don't simply power off you Windows box, do you? (That would not give mysql a chance to flush the key_buffer to disk.)

Has mysql crashed? Or is the table spontaneously "crashing" while mysql is running?

You did REPAIR TABLE? Or mysamchk?

Almost sounds like a bad spot on disk. If so, this might 'fix' it:
1. Stop mysql
2. rename the .myi file to something else, like "DISK.BAD".
3. restart mysql
4. REPAIR TABLE -- MySQL will see that the .MYI file is missing and rebuild it. But this time, it will be in a different spot on disk.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Incorrect key file for table 'XXX.MYI'; try to repair it
58332
April 14, 2010 11:06PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.