修复mysql:[ERROR] Native table ‘performance_schema’
转: http://www.amznz.com/error-native-table-performance_schema/
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密码,填入密码后确认如下图所示即表示修复完毕:

© 原文地址: http://www.amznz.com/error-native-table-performance_schema/
修复mysql:[ERROR] Native table ‘performance_schema’的更多相关文章
- ubuntu14.04 mysql-workbench Connecting to MySQL server ... Native table 'performance_schema'.'session_variables' has the wrong structure错误解决
		
使用的mysql版本: mysql Ver 14.14 Distrib 5.7.9, for Linux (x86_64) using EditLine wrapper 打开shell命令 1.输 ...
 - mysql :Native table 'performance_schema'.'cond_instances' has the wrong structure
		
err: 150418 13:25:06 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong struct ...
 - mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'ndbinfo_version'': Native table 'performance_schema'.'session_variables' has the wrong structure (1682)
		
centos7.5 导出整个数据库报错 问题: [root@db01 ~]# mysqldump -uroot -pBgx123.com --all-databases --single-transa ...
 - "Native table 'performance_schema'.'session_variables' has the wrong structure") [SQL: "SHOW VARIABLES LIKE 'sql_mode'"]
		
mysql_upgrade -u root -p--force 升级完重启
 - 修复 MySQL 数据库结构错误 – mysql_upgrade升级
		
http://www.cnblogs.com/wjoyxt/p/5477072.html 不知道是不是每次更新 MySQL 软件之后都需要执行数据库升级指令?在我进行过的几次软件升级之后,总会在 My ...
 - MySQL ERROR 1005: Can't create table (errno: 150)的错误解决办法
		
在mysql 中建立引用约束的时候会出现MySQL ERROR 1005: Can't create table (errno: 150)的错误信息结果是不能建立 引用约束. 出现问题的大致情况 1. ...
 - MySql Error: Can't update table in stored function/trigger
		
MySql Error: Can't update table in stored function/trigger because it is already used by statement w ...
 - Error code:1728 Cannot load from mysql.proc. The table is probably corrupted
		
Error code:1728 Cannot load from mysql.proc. The table is probably corrupted http://bugs.mysql.com/b ...
 - MySQL Error Number 1005 Can’t create table(Errno:150)
		
mysql数据库1005错误解决方法 MySQL Error Number 1005 Can’t create table ‘.\mydb\#sql-328_45.frm’ (errno: 150) ...
 
随机推荐
- js Object.defineProperty 使用
			
语法 Object.defineProperty(obj, prop, descriptor) 参数说明: obj:必需.目标对象 prop:必需.需定义或修改的属性的名字descriptor:必需. ...
 - PHP-汇总CGI、FastCGI、PHP-CGI、PHP-FPM、Spawn-FCGI
			
什么是CGI 1.CGI是HTTP协议与其他外部应用程序之间的一个接口标准 2.CGI程序或脚本(CGI程序通过HTTP服务器去执行时, 必须在CGI程序中制定其执行程序的完整路径, 使SHELL能找 ...
 - MySQL UUID函数的详解(转)
			
MySQL UUID函数的详解 MySQL中可以有二类用于生成唯一值性质的工具:UUID()函数和自增序列,那么二者有何区别呢?我们就此对比下各自的特性及异同点: l 都可以实现生成唯一值的功能: ...
 - 金软PDF转换(x-PDFConper)
			
一.产品概述 金软PDF转换(x-PDFConper)软件产品是一款能够在手机.平板电脑等移动终端设备上.能够浏览MS Office 的Word.Excel.PowerPoint.PDF 等四种格式文 ...
 - 拒绝蛋疼,javascript调试技巧
			
chrome的调试技巧网上很多介绍了,这里提两个个人觉得比较有用的: 1.console.log 优点:可以输出json对象,而非字符串,这是 alert() 做不到的 缺点:记得要删除,否则在低版本 ...
 - C#基础—不安全代码(unsafe code)
			
1.为何要有unsafe 也许是为了实现CLR类型安全的目标吧,默认情况下,C#没有提供指针的使用算法,但是有些情况下也可能需要指针这样直接访问内存的东西(虽然目前我还没有用过),但是有时候程序员非常 ...
 - IIS目录禁止执行权限
			
IIS6: IIS7:
 - 简单实例,说明自动生成Makefile的详细过程
			
为了编译一个简单的源文件main.c,需要自动生成一个makefile,以下是步骤: 第一步:----------在/root/project/main目录下创建一个文件main.c,其内容如下:-- ...
 - 【DataStructure】Some useful methods about linkedList.
			
/** * Method 1: Delete the input element x * and meanwhile keep the length of array after deleted n ...
 - atitit.产品console 日志的aticonsole 方案处理总结
			
atitit.产品console 日志的aticonsole 方案处理总结 1. 主要原理流程 1 2. 调用代码 1 3. 内部主要实现 1 3.1. 放入消息 1 3.2. 读取消息 2 默认可以 ...