怎么解决mysql的报错[ERROR] Native table ‘performance_schema’问题


本篇内容主要讲解“怎么解决mysql的报错[ERROR] Native table ‘performance_schema’问题”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么解决mysql的报错[ERROR] Native table ‘performance_schema’问题”吧!
报错信息:
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_stages_current’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_stages_history’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_stages_history_long’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_stages_summary_by_thread_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_stages_summary_by_account_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_stages_summary_by_user_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_stages_summary_by_host_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_stages_summary_global_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_statements_current’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_statements_history’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_statements_history_long’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_statements_summary_by_thread_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_statements_summary_by_account_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_statements_summary_by_user_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_statements_开发云主机域名summary_by_host_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_statements_summary_global_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’events_statements_summary_by_digest’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’users’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’accounts’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’hosts’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’socket_instances’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’socket_summary_by_instance’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’socket_summary_by_event_name’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’session_connect_attrs’has the wrong structure
2016-02-15 10:12:24 9692[ERROR]Native table’performance_schema’.’session_account_connect_attrs’has the wrong structure
解决办法:
mysql_upgrade -h localhost -uroot -p
需要注意的是mysql_upgrade 会调用mysqlcheck方法,期间会锁表对于大表可能执行的时间会很长。
到此,相信大家对“怎么解决mysql的报错[ERROR] Native table ‘performance_schema’问题”有了更深的了解,不妨来实际操作一番吧!这里是开发云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

相关推荐: mysql数据库怎么定时备份

这篇文章主要讲解了“mysql数据库怎么定时备份”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“mysql数据库怎么定时备份”吧!操作步骤:1、将脚本放到任意位置下,不容易被误删即可2、定时任务,一周执行一次脚本…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 06/28 08:36
下一篇 06/28 08:36

相关推荐