The linux machine on which we have the mysql has crashed due to a power failure. This probably caused the mysql server to crash too and we are not now able to restore/backup/export the database from it using the standard command line commands. Are there any mysql tools which help in recovering this data ?

link|improve this question

17% accept rate
feedback

3 Answers

Chances are good that you have got your tables and/or indexes damaged. Depending on what errors you get, you should use the CHECK TABLE and REPAIR TABLE statements. There is some more information on possible advanced recovery procedures in the MySQL documentation.

A backup is always good to have before doing stunts with important data - so don't forget to stop the mysql daemon and copy the entire /var/lib/mysql directory somewhere else before running any recovery commands.

link|improve this answer
+1 especially for the tip about making a backup first – Tom Shaw May 30 '11 at 10:03
feedback

Probably you should check the filesystem (fsck.ext3).

Which are the mysql errors?

link|improve this answer
feedback

After surfing the information on web about such tool, I found some good utility like Stellar Phoenix MySQL database recovery software. Although paid but claim to recover the database in every corruption scenario. The tool also repairs damaged MySQL tables created in Linux operating systems. Evaluate the software yourself by trying its demo version and check whether it worth the data need to recovered or not

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.