You might see this error if trying to perform a logical backup on a table that is corrupted.

mysqldump: Couldn't execute 'show create table `table`': Table 'table’ is marked as crashed and last (automatic?) repair failed (144)

This error occurs because mysqldump iterates through each table in the database and executes SHOW CREATE TABLE for each one when backing up the MySQL database. This statement retrieves the SQL query used to create the table, including its columns, indexes, constraints, and other attributes.

A logical backup can not be performed until the table is repaired. To repair the table, use the statement below. 

REPAIR TABLE tbl_name;

REPAIR TABLE works for tables with MyISAM, ARCHIVE, and CSV storage engines. For more information, review the MySQL Reference Manual.

For questions, please contact us.

Share This