mysql table is marked as crashed and last (automatic?) repair failed
来源:互联网 发布:windows gcc 64 编辑:程序博客网 时间:2024/05/22 14:54
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
- 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 ...
- Access数据库文档转到mongodb
- 误删数据文件后,使用bbed修改数据文件头,启动数据库
- FastVP 和 FastChche技术
- Android 4.2 Wifi Display 之 Settings 源码分析(一)
- 如何和国外的同行接轨?
- mysql table is marked as crashed and last (automatic?) repair failed
- 【让安卓手机快速接通笔记本WIFI的小技巧】
- SOCKET测试,
- 主线程自动退出问题
- plsql乱码如何解决
- Android APK反编译详解(附图)
- Tcl 快速入门
- linux 文件属性
- Android: On EditText Changed Listener