报错信息:
解决办法:
mysql_upgrade -h localhost -uroot -p
需要注意的是 mysql_upgrade 会调用 mysqlcheck 方法,期间会锁表对于大表可能执行的时间会很长。
- 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 方法,期间会锁表对于大表可能执行的时间会很长。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21210507/viewspace-1989009/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21210507/viewspace-1989009/