博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
修复mysql:[ERROR] Native table ‘performance_schema’
阅读量:4614 次
发布时间:2019-06-09

本文共 2037 字,大约阅读时间需要 6 分钟。

 

转: 

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

© 原文地址: 

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

你可能感兴趣的文章
mui搜索框 搜索点击事件
查看>>
2016012003+陈琦+散列函数的应用及其安全性
查看>>
Android 状态栏通知Notification、NotificationManager详解
查看>>
UIApplicationDelegate协议
查看>>
Jmeter测试dubbo接口填坑
查看>>
[zz]GDB调试精粹及使用实例
查看>>
数据库的创建和删除
查看>>
最简单的三层实例【插入据
查看>>
设计模式学习笔记——Prototype原型模式
查看>>
pom.xml里有红叉报错的解决办法
查看>>
Perl last和next的用法区别
查看>>
Selenium 管理 Cookies
查看>>
exceptionfunction[LeetCode]Permutations
查看>>
bzoj 4595 激光发生器
查看>>
multi cookie & read bug
查看>>
js时间转换
查看>>
(转载) Android Studio你不知道的调试技巧
查看>>
队列实现霍夫曼树
查看>>
关于微信公众平台测试号配置失败的问题
查看>>
【NOIP2001】统计单词个数
查看>>