服務器意外重啓或者斷電、 MySQL 不穩定等,都有可能引起數據表損壞。本教程簡單講述如何使用 phpMyAdmin 修復數據表。
報錯信息類似於
[145] Table './xxxx/activities' is marked as crashed and should be repaired

1 、登錄 phpMyAdmin,進入 phpMyAdmin 數據列表頁面;

2 、選擇一個數據表前的方框;

3 、頁面下方 「選中項」 下拉選擇 「修復表」;