新版本对权限控制有一些变动,当我使用innobackupex恢复数据后,查看Mysql的错误日志发现以下错误:
[quote]
100517 9:59:14 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
100517 9:59:14 [ERROR] Column count of mysql.db is wrong. Expected 22, found 15. Created with MySQL 0, now running 50143. Please use mysql_upgrade to fix this error.
100517 9:59:14 [ERROR] mysql.user has no `Event_priv` column at position 29
100517 9:59:14 [ERROR] Cannot open mysql.event
100517 9:59:14 [ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
[/quote]
网上有很多这方面的文章,需要用mysql_fix_privilege_tables进行升级。
/byread/bin/mysql/bin/mysql_fix_privilege_tables --password=
[quote]
100517 9:59:14 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
100517 9:59:14 [ERROR] Column count of mysql.db is wrong. Expected 22, found 15. Created with MySQL 0, now running 50143. Please use mysql_upgrade to fix this error.
100517 9:59:14 [ERROR] mysql.user has no `Event_priv` column at position 29
100517 9:59:14 [ERROR] Cannot open mysql.event
100517 9:59:14 [ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
[/quote]
网上有很多这方面的文章,需要用mysql_fix_privilege_tables进行升级。
/byread/bin/mysql/bin/mysql_fix_privilege_tables --password=