mysql table is marked as crashed and last (automatic?) repai_MySQL
程序员文章站
2022-05-15 17:04:38
...
bitsCN.com
bitsCN.com
mysql table is marked as crashed and last (automatic?) repair failed解决
1.同事的服务器在mysqldump备份的时候报错了
这个原因是myisam的表数据太多,在某个时刻, 存放数据的这个MyISAM表数据急速长大. 比如一些log表, 当硬盘写满了.这个时候还在继续写.然后这个表就会lock掉;
或者是mysiam的存储表的文件tbl_name.MYI 损坏了
表现在你用phpmyadmin打开这个数据库的时候. 该MyISAM表的下面几个字段显示in use.
Rows Type Collation Sizein use
使用mysqldump导出,报错XXX table is marked as crashed and last (automatic?) repair failed.
2. 解决办法.
找到mysql的数据库存放的文件夹,这个可以去mysql的配置文件 my.cnf (linux) my.ini(windows)里面找datadir 关键字,后面的就是路径
找到对应的数据库文件夹,进去后.在该数据库文件夹下执行,
#myisamchk -r
如果这样还是不能解决, 停掉mysql,然后
#myisamchk -r -v -f
bitsCN.com
推荐阅读
-
优化表后出现了is marked as crashed and last (automatic?) repair failed解决办法
-
Table'./mysql/user'is marked as crashed and should be repa_MySQL
-
mysql table is marked as crashed and last (automatic?) repai
-
mysql错误:Table XXX is marked as crashed and should be repai
-
mysql table is marked as crashed and last (automatic?) repai
-
数据库崩溃-mysql数据库常常出现 table XXX is marked crashed and should be repaired
-
数据库崩溃-mysql数据库常常出现 table XXX is marked crashed and should be repaired
-
mysql错误:Table XXX is marked as crashed and should be repai
-
优化表后出现了is marked as crashed and last (automatic?) repair failed解决办法
-
mysql table is marked as crashed and last (automat