1. 程式人生 > >修復./mysql/proc

修復./mysql/proc

mysql資料庫只能建不能刪的錯誤提示及處理方法:

 mysql> drop database zabbixaa;

ERROR 145 (HY000): Table ‘./mysql/proc‘ is marked as crashed and should be repaired

處理方法:直接在mysql資料庫裡面使用root帳號登入後,進行修復:

mysql> repair table mysql.proc;

+------------+--------+----------+----------+

| Table      | Op     | Msg_type | Msg_text |

+------------+--------+----------+----------+

| mysql.proc | repair | status   | OK       |

+------------+--------+----------+----------+

1 row in set (0.05 sec)

再次執行刪除正常

mysql> drop database zabbixaa;

Query OK, 0 rows affected (0.02 sec)