mysql table is marked as crashed and last (automatic?) repair failed
来源:互联网 发布:阿里云邮件客户端 编辑:程序博客网 时间:2024/05/21 08:45
1.同事的服务器在mysqldump备份的时候报错了
这个原因是myisam的表数据太多,在某个时刻, 存放数据的这个MyISAM表数据急速长大. 比如一些log表, 当硬盘写满了.这个时候还在继续写.然后这个表就会lock掉;
或者是mysiam的存储表的文件tbl_name.MYI 损坏了
表现在你用phpmyadmin打开这个数据库的时候. 该MyISAM表的下面几个字段显示in use.
RowsTypeCollationSizein use使用mysqldump导出,报错XXX table is marked as crashed and last (automatic?) repair failed.
2. 解决办法.
找到mysql的数据库存放的文件夹,这个可以去mysql的配置文件 my.cnf (linux) my.ini(windows)里面找datadir 关键字,后面的就是路径
找到对应的数据库文件夹,进去后.在该数据库文件夹下执行, <table_name> 是你想要修复的表名,
#myisamchk -r <table_name>
如果这样还是不能解决, 停掉mysql,然后
#myisamchk -r -v -f <table_name>
参考
http://dev.mysql.com/doc/refman/5.0/en/myisam-repair.html
0 0
- mysql table is marked as crashed and last (automatic?) repair failed
- Mysql Table './tablename' is marked as crashed and last (automatic?) repair failed 错误解决办法
- mysql table is marked as crashed and last (automatic?) repair failed
- table_name' is marked as crashed and last (automatic?) repair failed
- Table 'table_name' is marked as crashed and last (automatic?) repair failed解决办法
- Table 'xxx'is marked as crashed and last (automatic) repair failed
- MySql5.0 Table错误is marked as crashed and last (automatic) repair failed
- 解决 Error: Table './db_name/table_name' is marked as crashed and last (automatic?) repair
- 解决 Error: Table './db_name/table_name' is marked as crashed and last (automatic?) repair
- 项目经验分享--今天数据库的一张表挂了is marked as crashed and last (automatic?) repair failed
- MySql5.0 Table错误:is marked as crashed and last (automatic?) 解决办法
- 快速解决"is marked as crashed and should be repaired"故障以及is marked as crashed and last (automatic?)
- repair table `site_user`,#1194 – Table is marked as crashed and should be repaired错误修复
- Mysql断电mysql:Table 'xxxxx' is marked as crashed and should be repaired
- Table 'table_name' is marked as crashed and should be repaired
- Table is marked as crashed and should be repaire 解决方法
- Table 'xxxxxxx' is marked as crashed and should be repaired
- Table ‘xxx’ is marked as crashed and should be repaired ...
- js中数组的操作
- COM组件编程—IUnknown的三个接口函数
- 主要发达国家大数据政策比较研究
- spring jdbcTemplate 插入对象返回主键值
- 自己学驱动12——存储控制器
- mysql table is marked as crashed and last (automatic?) repair failed
- kernel打印开关
- 测试爱好
- 深入理解Linux网络技术内幕——虚拟设备初始化小结
- powerdesigner配置mysql数据源小记
- Windows7导航窗口自动跳转到当前目录
- Project 1 :创建链表与显示链表
- ccv:一个现代的开源计算机视觉函数库
- jQuery的deferred对象详解