今天生产环境的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
