Mysql dump crashed table for repair

MySQL

I have a large table which has crashed however when I try to run a repair on the server I have problems with not enough disk space. I would like to dump this table to my local machine for a repair but mysqldump throws error because of crashed table. Is it possible to dump this table for repair locally?

Best Answer

Is this MyISAM? InnoDB?

If it's MyISAM you could try myisamcheck --safe-recover as the docs say:

"This recovery method also uses much less disk space than --recover. Normally, you should repair first using --recover, and then with --safe-recover only if --recover fails. "

Here is the reference.

Related Topic