mysql报错:[ERROR] /usr/libexec/mysqld: Table ‘./istester/idoxu_article' is marked as crashed and should be repaired
- 2023-01-11 16:15:00
- IDO老徐 原創
- 13519
问:mysql报错:[ERROR] /usr/libexec/mysqld: Table ‘./istester/idoxu_article' is marked as crashed and should be repaired
解決思路:
1、進入你的 Linux下mysql 安装目录
tail -100f iZ94b31ttqsZ.err (找到这个错误日志文件)
220731 0:59:57 [ERROR] /usr/libexec/mysqld: Table './istester/idoxu_article' is marked as crashed and should be repaired
2、命令行进入 mysql
mysql -u root -p
mysql> use istester
Database changed
mysql>
mysql>
mysql> show tables;
3、檢查損壞的表
mysql> check table idoxu_article;
+-----------------------------+-------+----------+-----------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+-----------------------------+-------+----------+-----------------------------------------------------------+
| cz_istester_com.eps_article | check | warning | Table is marked as crashed |
| cz_istester_com.eps_article | check | warning | 39 clients are using or haven't closed the table properly |
| cz_istester_com.eps_article | check | error | Checksum for key: 4 doesn't match checksum for records |
| cz_istester_com.eps_article | check | error | Corrupt |
+-----------------------------+-------+----------+-----------------------------------------------------------+
4 rows in set (0.14 sec)
4、進行表修复 ,一行命令搞定 。
mysql> repair table eps_article;
IDO老徐
全网同名,个人IP公衆號
日更10年,每天 1 分钟、解决 1 个问题
職場、副業、輕創業、寫作、個人IP
公衆號、視頻號、小红书、知乎
長按/掃碼,關注IDO老徐
關注回複 401 送你「十年原創资料包」
聯系人: | IDO老徐 |
---|---|
Email: | 957863300@qq.com |
QQ: | 957863300 |
微信: | 957863300 |
微博: | isTester |
網址: | idoxu.com |
地址: | 中国 · 广东 · 深圳 |
來源備注:老徐博客