MySQL执行命令出错,Table xxx is marked as crashed and should be repaired 的解决方法

问题
MySQL执行命令出错,Table xxx is marked as crashed and should be repaired 的解决方法

解决
1、进入mysql命令行:
mysql -u root -p 回车  输入密码

2、进入指定数据库 如:sp1
mysql> use sp1;

3、执行命令检查修复 表错误命令:
mysql> check table 表名;