mysql 错误:Table is marked as crashed and should be repaired 解决办法

《mysql 错误:Table is marked as crashed and should be repaired 解决办法》

遇到这个问题 敲 几个命令轻松搞定

# mysql -u root -p 回车  输入密码
# mysql> show databases;
# mysql> use 数据库名称;
# mysql> check table xxxxxx(xxxxxx--出现错误的表)用来检查出现问题的表的状态,出现错误就正常

# mysql> repair table xxxxxx
# mysql> check table XXXXXX

//如果无效加上:USE_FRM 如:
//使用此命令有一定的机率会丢失数据!!注意备份好数据!!
# mysql> REPAIR TABLE tablename USE_FRM;
点赞

发表评论

邮箱地址不会被公开。 必填项已用*标注