WenRou's Blog
centos下MYSQL数据表损坏修复Table is marked as crashed and should be repaired
2016-1-8 温柔哥


centos下php网站数据表损坏,提示:Table './xxx' is marked as crashed and should be repaired



建议停止 mysqld服务后再修复!



用这个命令修复:myisamchk -r -o -f /usr/local/mysql/data/sqlaaa/test_user.MYI



如果提示myisamchk is not found ,用绝对路径,例如:



/usr/local/mysql/bin/myisamchk -r -o -f /usr/local/mysql/data/sqlaaa/test_user.MYI

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容