Got error 134 from storage engine 错误
MySql 执行以以下SQL时报错:
Sql代码
mysql> select * from tb_user where id=XXX;
错误:
Sql代码
ERROR 1030 : Got error 134 from storage engine
storage engine错误,应该是表出错了。
检查表:check table tb_user;
mysql> check table tb_user;
mysql> check table tb_user;
+——————————-+——-+———-+——————————————————-+
| Table | Op | Msg_type | Msg_text |
+——————————-+——-+———-+——————————————————-+
| db_monitor.tb_user | check | warning | 1 client is using or hasn’t closed the table properly |
| db_monitor.tb_user | check | error | Found 2177 keys of 2183 |
| db_monitor.tb_user | check | error | Corrupt |
+——————————-+——-+———-+——————————————————-+
3 rows in set (0.04 sec)
修复表:repair table tb_user;
mysql> repair table tb_user;
+——————————-+——–+———-+———-+
| Table | Op | Msg_type | Msg_text |
+——————————-+——–+———-+———-+
| db_monitor.tb_user | repair | status | OK |
+——————————-+——–+———-+———-+
1 row in set (0.60 sec)
修复完成。
本文介绍了一个具体的MySQL表修复案例,包括出现Got error 134 from storage engine错误的原因及解决步骤。通过check table命令检查表状态,发现表损坏后使用repair table命令进行修复。
1065

被折叠的 条评论
为什么被折叠?



