[mysql] 修复问题表Table '.xxxx' is marked as crashed and should be repaired

程序执行的过程中,出现   Table '.xxxx' is marked as crashed and should be repaired 错误,上网查了一下,原来是表遭到损坏所致,具体修复办法如下:

假设遭到损坏的表是数据库abc中的demo.

1、登录到数据库

2、use abc

3、check table demo;

4、一般会列出错误,那么就repair table demo;

5、一般结果就会显示OK,如果不放心,可以再次check table demo;

经过这几个步骤,我的表就被修复好了。

原文地址:https://www.cnblogs.com/aaronguo/p/10561252.html