Table 'hd_online' is marked as crashed and should be repaired索引损坏

myisam 引擎表的索引损坏,解决方法

找到mysql的安装目录的/usr/local/mysql/bin/myisamchk工具,在命令行中输入:

 myisamchk -c -r /data/db/my/sc_blt/hd_online.MYI   (表的路径)

然后myisamchk 工具会帮助你恢复数据表的索引。重新启动mysql,问题解决。

你可能感兴趣的:(Table 'hd_online' is marked as crashed and should be repaired索引损坏)