ERROR 1682 (HY000): Native table 'performance_schema'.'session_variables' has the wrong structure

mysql 5.6升级到mysql5.7查看参数报错

[email protected] [(none)]>show variables like ‘%data%‘;
ERROR 1682 (HY000): Native table ‘performance_schema‘.‘session_variables‘ has the wrong structure

--从mysql5.7.6开始information_schema.global_status已经开始被舍弃,为了兼容性,此时需要打开 show_compatibility_56

解决办法

[email protected] [(none)]>set @@global.show_compatibility_56=ON;
Query OK, 0 rows affected (0.00 sec)

[email protected] [(none)]>show variables like ‘%data%‘;
+---------------------------------------+-----------------------------+
| Variable_name                         | Value                       |
+---------------------------------------+-----------------------------+
| character_set_database                | utf8                        |
| collation_database                    | utf8_general_ci             |
| datadir                               | /data/mysql/mysql3306/data/ |
| innodb_data_file_path                 | ibdata1:12M:autoextend      |
| innodb_data_home_dir                  |                             |
| innodb_stats_on_metadata              | OFF                         |
| innodb_temp_data_file_path            | ibtmp1:12M:autoextend       |
| max_length_for_sort_data              | 1024                        |
| metadata_locks_cache_size             | 1024                        |
| metadata_locks_hash_instances         | 64                          |
| myisam_data_pointer_size              | 6                           |
| performance_schema_max_metadata_locks | -1                          |
| skip_show_database                    | OFF                         |
| updatable_views_with_limit            | YES                         |
+---------------------------------------+-----------------------------+
14 rows in set (0.00 sec)

ERROR 1682 (HY000): Native table 'performance_schema'.'session_variables' has the wrong structure

原文地址:https://www.cnblogs.com/hanglinux/p/11785438.html

时间: 2024-09-29 21:05:50

ERROR 1682 (HY000): Native table 'performance_schema'.'session_variables' has the wrong structure的相关文章

Table 'performance_schema.session_status' doesn't exist和Native table 'performance_schema'.'session_status' has the wrong structure解决办法

如果从MySQL5.6升到5.7,可能会出现Table 'performance_schema.session_status' doesn't exist和Native table 'performance_schema'.'session_status' has the wrong structure这两个错误,解决办法: 执行以下指令: mysql_upgrade -u root -p --force 然后重启MySQL: systemctl restart mysqld 这样就正常了!!!

修复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 structure140213 16:55:47 [ERROR] Nati

Table ‘performance_schema.session_variables’ doesn’t exist

运行mysql时,提示Table ‘performance_schema.session_variables’ doesn’t exist 解决的方法是: 第一步:在管理员命令中输入: mysql_upgrade -u root -p --force 第二步:重新启动mysql的服务: net stop mysql net start mysql 再次运行mysql,就解决了. 注意,两步缺一不可.

mysql Table 'performance_schema.session_variables' doesn't exist

CMD  进入MYSQL的安装目录..Bin 下 执行 mysql_upgrade -u root -p --force 输入密码..然后等待一会儿..会跑一些东西..然后重启服务 mysql Table 'performance_schema.session_variables' doesn't exist

Table 'performance_schema.session_variables' doesn't exist

出现标题所示错误时设置如下参数可以解决!set @@global.show_compatibility_56=ON; Table 'performance_schema.session_variables' doesn't exist

更新Navicat Premium 后打开数据库出现1146 - Table 'performance_schema.session_variables' doesn't exist

更新Navicat Premium 后打开数据库出现1146 - Table 'performance_schema.session_variables' doesn't exist 解决方法:打开终端进入mysql bin目录下执行 mysql_upgrade -u root -p --force 本人用的MAMP集成环境输入命令如下 /Applications/MAMP/Library/bin/mysql_upgrade -u root -p --force 就解决了 作者:Start_85

mysql - ERROR 1114 (HY000): The table is full

mysql - ERROR 1114 (HY000): The table is full - Stack Overflowhttps://stackoverflow.com/questions/730579/error-1114-hy000-the-table-is-full df -H 硬盘满了 原文地址:https://www.cnblogs.com/rgqancy/p/10937638.html

mysql 解决 ERROR 1114 (HY000): The table 'XXX' is full

操作:执行 alter table aa_table drop column hehe; 删除 aa_table 表中 hehe 字段.导致 ERROR 1114 (HY000): The table 'sy_transaction_info' is full. 删除字段操作,磁盘可以空间需要大于表本身占据的空间(如当前操作的表占据 40 GB,那么要求磁盘可用空间必须大于 40 GB). 据观察推断其删除字段行为为:创建一张新表,删除的字段不再创建,再把原有的表数据导入新表. 1. 查看磁盘使

【故障处理】ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository

今天在使用冷备份文件重做从库时遇到一个报错,值得研究一下. 版本:MySQL5.6.27 一.报错现象 dba:(none)> start slave; ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository 这个时候查看error.log: 2017-07-17 16:19:02 9022 [ERROR] Failed to open the relay log '.