mysql log 看到如下 error 訊息

140413 10:14:54 [ERROR] Column count of mysql.db is wrong. Expected 22, found 20. The table is probably corrupted
140413 10:14:54 [ERROR] mysql.user has no `Event_priv` column at position 29
140413 10:14:54 [ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.

要用 mysql_fix_privilege_tables 修復

不過 mysql 5.5 似乎沒有這個 script 存在了

它現在有 mysql_upgrade,執行這個指令即可

Related posts 相關文章
使用連線控制插件提高 MySQL 安全性
More...
使用驗證插件提高 MySQL 密碼安全性
More...
用 pv 查看 mysql restore 還原資料進度
More...
使用 sysbench 壓力測試 mysql
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。