【原创】table "xxxx" is marked as crashed and should be repaired 解决方法
问题背景:
数据表引擎MYISAM, 操作某数据表突然报告如下错误:
table "xxxx" is marked as crashed and should be repaired
问题原因:
一般多是频繁查询和更新数据表造成索引错误
解决方法:
找到mysql的安装目录的 /path/to/mysql/bin/myisamchk 工具,在命令行中输入:
/path/to/mysqlmyisamchk -c -r /path/to/mysql/to_repair_table.MYI
注意事项:
1. myisamchk 工具会帮助你恢复数据表的索引。
2. 一定要记得重新启动mysq,否则不会生效。
版权声明:除非注明,本文由( blogdaren )原创,转载请保留文章出处。
本文链接:【原创】table "xxxx" is marked as crashed and should be repaired 解决方法
发表评论: