mysql出现“Incorrect key file for table”解决办法
今天mysql突然出现以下错误:
mysql> select * from test;
ERROR 1034 (HY000): Incorrect key file for table ‘test’; try to repair it
首先通过repair table修复:
mysql> repair table test;
+—————+——–+———-+———————————————————+
| Table | Op | Msg_type | Msg_text |
+—————+——–+———-+———————————————————+
| test.test | repair | Error | Incorrect key file for table ‘test’; try to repair it |
| test.test | repair | error | Corrupt
如果还是没用,运行下面命令
mysql> repair table test USE_FRM;
+—————+——–+———-+———————————————————+
| Table | Op | Msg_type | Msg_text |
+—————+——–+———-+———————————————————+
| test.test | repair | Error |Number of rows changed from 0 to 110423 |
| test.test | repair | status | OK
按理应该可以了。
如果还是没用,则退出mysql,执行如下修复动作:
myisamchk -of /var/lib/mysql/test/test.MYI
myisamchk -r /var/lib/mysql/test/test.MYI
myisamchk safe-recover /var/lib/mysql/test/test.MYI
再重启mysql后应该可以正常了。
mysql出现“Incorrect key file for table”解决办法相关推荐
- mysql old key files_mysql出现“Incorrect key file for table”解决办法
本文来自: https://www.cnblogs.com/zjoch/archive/2013/08/19/3267131.html 今天mysql突然出现以下错误: mysql> selec ...
- mysql Incorrect key file for table ‘/tmp/#sql_xxxx_0.MYI‘; try to repair it
查看information_schema的COLUMNS表,但是出现如下问题: root:information_schema> select * from COLUMNS; ERROR 126 ...
- MySQL异常:Incorrect key file for table '/tmp/#sql_37b_1.MYI'; try to repair it
今天突然收到报警短信,提示网站有一个模块出现异常,当时我就方了 检查了下日志,发现异常如下: Caused by: java.sql.SQLException: Incorrect key file ...
- 重启服务器后mysql表损坏 Incorrect key file for table ‘.\axxxx.MYI‘; try to repair it“,“tourl“:““,.....
重启系统后mysql表损坏 Incorrect key file for table '.\axxxx.MYI'; try to repair it","tourl":& ...
- [error] [mysql]:1034 Incorrect key file for table 'table_name'; try to repair it
[error] [mysql]:"1034 Incorrect key file for table 'table_name'; try to repair it" 现象描述: m ...
- mysql中大数据表alter增加字段报错:1034 Incorrect key file for table 'table_name'; try to repair it...
mysql中大数据表alter增加字段报错:"1034 Incorrect key file for table 'table_name'; try to repair it" 现 ...
- MySQL Error Query database. Causejava.sql.SQLException: Incorrect key file for table ‘/tmp/#sql_181c
1,开发人员截图给我,后台报错如下: Error Query database. Causejava.sql.SQLException: Incorrect key file for table '/ ...
- MySql 执行异常Cause: java.sql.SQLException: Incorrect key file for table
MySql 执行异常 问题现象 问题原因 解决方案 问题现象 今天测试环境执行sql图片报错,错误日记如下: org.springframework.jdbc.UncategorizedSQLExce ...
- ERROR 126 (HY000) at line 1: Incorrect key file for table '/tmp/#sql_7b09_0.MYI'; try to repair it
1.问题背景 我在slelect一个数据量很大的merge表时,并同时将select结果集insert到另外一张表中,报了如下错误: ERROR 126 (HY000) at line 1: Inco ...
最新文章
- oracle中lang能不能查找,oracle中的查询语句
- windowns 8.1 缺少.net3.5解决方案
- Hibernate 多对多映射实列
- 你还以为,除了你自己就没有人懂你女朋友吗?
- c语言程序年月日怎么编,C语言程序设计: 输入年月日 然后输出是星期几
- 34. Element textContent 属性
- 连接Excel时出现未指定的错误
- solr6 mysql增量更新_solr 的全量更新与增量更新
- 真是恍然大悟啊!java从入门到精通pdf百度云
- mysql数据库的实例_MySQL数据库实例-解释汇总
- arcgis10之根据lyr文件进行配色
- echarts实现组织结构图
- 计算机屏幕截图按什么键,电脑按什么键自由截图
- 关于联想Y700,玩游戏闪屏
- 在架构师眼里,一份美团外卖是如何做出来的?
- 无线网经常短连接服务器,我家的无线网不稳定,经常掉线,每次玩游戏到加载的时候,总会出现:”无法连接服务器,请检查您的网络“...
- Idea--git合并多次commit为一个(合并提交)--实例
- 三姬分金/四姬分金/五姬分金(海盗分金币)等经典博弈论问题
- ESD镜像文件转换成ISO镜像文件解决方案
- 卸载EDR软件(简单记录)