[错误]本机表性能架构具有错误的结构

时间:2015-08-14 01:19:09

标签: mysql structure

150814  9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure
150814  9:09:14 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure
150814  9:09:14 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.44-cll-lve'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Atomicorp

然后我跑

mysql_upgrade

它显示:

寻找' mysql' as:mysql

寻找' mysqlcheck' as:mysqlcheck

致命错误:升级失败

6 个答案:

答案 0 :(得分:58)

这似乎是在您完成升级后发生的。只需重启mysql:

service mysql restart

现在错误已经消失了。

答案 1 :(得分:7)

如果您在本地设备上运行MySQL,则需要升级mysql然后重新启动:

升级:

realm.where(CategoryInfo.class)
         .equalTo("appInfos.packageName", packageName)
         .equalTo("categoryName", category)
         .findAll()
         .deleteFromRealm();

重新启动:

$ mysql_upgrade -u root  

答案 2 :(得分:0)

Windows7 Pro,Mysql 5.7,Java Tomcat

我尝试使用Mysql.com上提供的Windows Web更新程序将mysql服务器从5.7.8版更新到5.7.18版。安装的新版本作为服务启动,但不会提供任何服务,包括登录。

  1. 使用Windows命令框,将目录更改为C:\ Program Files \ MySQL \ MySQL Server 5.7 \ bin

  2. 输入:mysql_upgrade --force -u root -p

  3. 输入正在升级的先前版本的密码。

  4. 在Windows上重启Mysql服务>开始>管理工具>服务

  5. Mysql服务器立即启动并连接到Java Servlet容器。

答案 3 :(得分:0)

当我在MAMP Server中升级MySQL时,我也发生了同样的事情。 我要做的就是重新启动服务器。 我单击了“停止服务器”按钮,然后单击了“启动服务器”。 之后一切都很好。

答案 4 :(得分:-2)

这里的问题相同

$ mysqldump -h localhost --lock-all-tables --set-gtid-purged=OFF -u root -p --socket=/var/run/mysqld/mysqld.sock --all-databases > dump.sql
mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'ndbinfo\_version'': Native table 'performance_schema'.'session_variables' has the wrong structure (1682)

你有没有测试

$ mysql_upgrade -u root -p

$ mysql_upgrade --force -u root -p

答案 5 :(得分:-2)

mysqldump只需添加如下参数:--skip-lock-tables

可以避免此错误:

mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'ndbinfo\_version'': Native table 'performance_schema'.'session_variables' has the wrong structure (1682)