新版本Mysql恢复老版本mysql数据权限表的问题

新版本对权限控制有一些变动,当我使用innobackupex恢复数据后,查看Mysql的错误日志发现以下错误:
引用

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.


网上有很多这方面的文章,需要用mysql_fix_privilege_tables进行升级。
/byread/bin/mysql/bin/mysql_fix_privilege_tables --password=

你可能感兴趣的:(mysql)