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

新版本对权限控制有一些变动,当我使用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=
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值