本篇內(nèi)容主要講解“怎么解決MySQL的報(bào)錯(cuò)[ERROR] Native table 'performance_schema'問(wèn)題”,感興趣的朋友不妨來(lái)看看。本文介紹的方法操作簡(jiǎn)單快捷,實(shí)用性強(qiáng)。下面就讓小編來(lái)帶大家學(xué)習(xí)“怎么解決mysql的報(bào)錯(cuò)[ERROR] Native table 'performance_schema'問(wèn)題”吧!
我們提供的服務(wù)有:網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè)、微信公眾號(hào)開(kāi)發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、臨夏州ssl等。為上1000+企事業(yè)單位解決了網(wǎng)站和推廣的問(wèn)題。提供周到的售前咨詢(xún)和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的臨夏州網(wǎng)站制作公司
報(bào)錯(cuò)信息:
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 會(huì)調(diào)用 mysqlcheck 方法,期間會(huì)鎖表對(duì)于大表可能執(zhí)行的時(shí)間會(huì)很長(zhǎng)。
到此,相信大家對(duì)“怎么解決mysql的報(bào)錯(cuò)[ERROR] Native table 'performance_schema'問(wèn)題”有了更深的了解,不妨來(lái)實(shí)際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢(xún),關(guān)注我們,繼續(xù)學(xué)習(xí)!