MySQL错误Incorrect file format解决方案
程序员文章站
2022-06-16 13:34:18
...
一台mysql服务器,机器意外重启后,N个表报错,想必你已经知道库的引擎是myisam的了,太悲催,太蛋碎了,先看看报错信息:mysqldescPARTITION_KEYS;ERROR130(HY0
一台mysql 服务器,机器意外重启后,N个表报错,想必你已经知道库的引擎是myisam 的了,,太悲催,太蛋碎了,先看看报错信息:
mysql> desc PARTITION_KEYS; ERROR 130 (HY000): Incorrect file format 'PARTITION_KEYS' mysql> check table PARTITION_KEYS; +-------------------------+-------+----------+----------------------------------------+ | Table | Op | Msg_type | Msg_text | +-------------------------+-------+----------+----------------------------------------+ | hivedbwm.PARTITION_KEYS | check | Error | Incorrect file format 'PARTITION_KEYS' | | hivedbwm.PARTITION_KEYS | check | error | Corrupt | +-------------------------+-------+----------+----------------------------------------+ 2 rows in set (0.00 sec)执行REPAIR TABLE table_name USE_FRM; 修复:
mysql> REPAIR TABLE PARTITION_KEYS USE_FRM; +-------------------------+--------+----------+----------+ | Table | Op | Msg_type | Msg_text | +-------------------------+--------+----------+----------+ | hivedbwm.PARTITION_KEYS | repair | status | OK | +-------------------------+--------+----------+----------+ 1 row in set (0.02 sec) mysql> desc PARTITION_KEYS; +--------------+---------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------------+---------------+------+-----+---------+-------+ | TBL_ID | bigint(20) | NO | PRI | NULL | | | PKEY_COMMENT | varchar(4000) | YES | | NULL | | | PKEY_NAME | varchar(128) | NO | PRI | NULL | | | PKEY_TYPE | varchar(767) | NO | | NULL | | | INTEGER_IDX | int(11) | NO | | NULL | | +--------------+---------------+------+-----+---------+-------+ 5 rows in set (0.02 sec)本文出自 “屌丝运维男” 博客,请务必保留此出处
上一篇: 如何在PHP程序中防止盗链
下一篇: PHP 数据库树的遍历方法_php技巧
推荐阅读
-
解决mysql ERROR 1017:Can't find file: '/xxx.frm' 错误
-
mysql服务1067错误多种解决方案分享
-
Mysql 错误too many connections解决方案
-
MYSQL错误:Can’t open file: ‘×××.MYI’ (errno: 145)修复方法
-
MySql 错误Incorrect string value for column
-
解决mysql ERROR 1017:Can't find file: '/xxx.frm' 错误
-
Mysql 错误too many connections解决方案
-
MYSQL错误:Can’t open file: ‘×××.MYI’ (errno: 145)修复方法
-
MySql 错误Incorrect string value for column
-
mysql报错1033 Incorrect information in file: ‘xxx.frm’问题的解决方法