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

发布时间:2021-11-19 11:50:08 作者:iii
来源:亿速云 阅读:906

本篇内容主要讲解“怎么解决mysql的报错[ERROR] Native table 'performance_schema'问题”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么解决mysql的报错[ERROR] Native table 'performance_schema'问题”吧!

报错信息:

  1. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_stages_current'has the wrong structure

  2. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_stages_history'has the wrong structure

  3. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_stages_history_long'has the wrong structure

  4. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_stages_summary_by_thread_by_event_name'has the wrong structure

  5. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_stages_summary_by_account_by_event_name'has the wrong structure

  6. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_stages_summary_by_user_by_event_name'has the wrong structure

  7. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_stages_summary_by_host_by_event_name'has the wrong structure

  8. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_stages_summary_global_by_event_name'has the wrong structure

  9. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_statements_current'has the wrong structure

  10. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_statements_history'has the wrong structure

  11. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_statements_history_long'has the wrong structure

  12. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_statements_summary_by_thread_by_event_name'has the wrong structure

  13. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_statements_summary_by_account_by_event_name'has the wrong structure

  14. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_statements_summary_by_user_by_event_name'has the wrong structure

  15. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_statements_summary_by_host_by_event_name'has the wrong structure

  16. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_statements_summary_global_by_event_name'has the wrong structure

  17. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'events_statements_summary_by_digest'has the wrong structure

  18. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'users'has the wrong structure

  19. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'accounts'has the wrong structure

  20. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'hosts'has the wrong structure

  21. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'socket_instances'has the wrong structure

  22. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'socket_summary_by_instance'has the wrong structure

  23. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'socket_summary_by_event_name'has the wrong structure

  24. 2016-02-15 10:12:24 9692[ERROR]Native table'performance_schema'.'session_connect_attrs'has the wrong structure

  25. 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'问题”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

推荐阅读:
  1. MySQL基础:搭建bc网站sql执行错误时的控制方式
  2. MySQL和PostgreSQL在多表连接算法上的差异有哪些

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

mysql

上一篇:如何使用Docker和Traefik搭建WordPress

下一篇:SpringCloud分布式微服务b2b2c电子商务docker-feign配置的示例分析

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》