2021-12-02T01:30:01.632468Z 19841 [ERROR] [MY-013134] [Server] Incorrect key file for table './typecho/typecho_contents.MYI'; try to repair it

前段ECS的硬盘满了,导致被迫重启了mysql, 使某些数据表损坏了。

但其实处理起来很简单, 因为数据都都能访问的, 证明问题不大。

# 进入 mysql
mysql -u root -p

# 选择db 
use typecho

# 修复数据表
 repair table typecho_contents

执行完成后返回成功

+--------------------------+--------+----------+----------+
| Table                    | Op     | Msg_type | Msg_text |
+--------------------------+--------+----------+----------+
| typecho.typecho_contents | repair | status   | OK       |
+--------------------------+--------+----------+----------+
1 row in set (0.06 sec)

Done.