mysql修复表

myisamchk -r /usr/local/mysql/data/mysql/*MYI
1、ERROR 145 (HY000): Table ‘./mysql/proc’ is marked as crashed and should be repaired
解决方法
mysql> repair table mysql.proc;
+————+——–+———-+———-+
| Table | Op | Msg_type | Msg_text |
+————+——–+———-+———-+
| mysql.proc | repair | status | OK |
+————+——–+———-+———-+

mysql> select count(*) from poller_output;
ERROR 145 (HY000): Table ‘./cacti/poller_output’ is marked as crashed and should be repaired
mysql> truncate table poller_output;
Query OK, 0 rows affected (0.02 sec)

你可能感兴趣的:(mysql修复表)