修复mysql:[ERROR] Native table ‘performance_schema’

 

转: http://www.amznz.com/error-native-table-performance_schema/

mysql数据库出现如下错误,主要是因为升级了mysql软件包,而一些数据库的表结构发生变化而无法正常运行。

140213 16:55:47 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure
140213 16:55:47 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure

修复方法很简单只需在root权限下运行如下命令即可:

/usr/local/mysql/bin/mysql_upgrade -u root -p

输入命令后会要求验证mysql密码,填入密码后确认如下图所示即表示修复完毕:

mysql_upgrade

© 原文地址: http://www.amznz.com/error-native-table-performance_schema/

转载于:https://www.cnblogs.com/UniqueColor/p/6817856.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值