bitsCN.com

今天生产环境的mysql从5.0升级到了5.1,结果日志报错,如下
Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
mysql.user has no `Event_priv` column at position 29

解决办法:
修复mysql系统表
mysql_fix_privilege_tables
或者提供密码修复
mysql_fix_privilege_tables --password=root_password
mysql_fix_privilege_tables脚本可以执行将系统表转换为当前格式的任何动作。运行时你可能会看见一些Duplicate column name警告;你可以忽略它们。

作者“君子博学而日参省乎己..”

bitsCN.com
09-19 02:45