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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 错误:Table is marked as crashed and should be repaired 解决办法相关的知识,希望对你有一定的参考价值。

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

1、首先进入mysql命令台:

mysql -u root -p 回车  输入密码

2、查询所有的库

mysql> show databases;

3、进入数据库“XXXX”,是库名

mysql> use 数据库名称;

4、check table xxxxxx(xxxxxx--出现错误的表)用来检查出现问题的表的状态,出现错误就正常

5、然后用repire 修复表

repair table xxxxxx

6、再用检查一下就ok了

check table XXXXXX

7、ok 搞定

以上是关于mysql 错误:Table is marked as crashed and should be repaired 解决办法的主要内容,如果未能解决你的问题,请参考以下文章

MySql Table错误:is marked as crashed and last (automatic?) 和 Error: Table "mysql"."inno

mysql报错:Table 'ta_history' is marked as crashed and should be repa

出现Table ‘./mysql/proc’ is marked as crashed and should be repaired

Table '.mysqlproc' is marked as crashed and should be repaired 报错

Table '' is marked as crashed and should be repaired 解决方法

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