Mysql提示134错误

本文介绍了一个具体的MySQL表修复案例,包括出现Got error 134 from storage engine错误的原因及解决步骤。通过check table命令检查表状态,发现表损坏后使用repair table命令进行修复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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)

修复完成。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值