mysql> show variables like "%plugin%";
ERROR 1146 (42S02): Table 'performance_schema.session_variables' doesn't exist
mysql> show variables like '%show_compatibility_56%';
ERROR 1146 (42S02): Table 'performance_schema.session_variables' doesn't exist
第1種解決辦法,如果在不重啟的情形下可用
show_compatibility_56此標誌控制引擎在各種MySQL版本上設置和讀取變量(會話和全局)的查詢時的行為方式。
mysql> set @@global.show_compatibility_56=ON;
Query OK, 0 rows affected (0.00 sec)
mysql> show variables like '%show_compatibility_56%';
+-----------------------+-------+
| Variable_name | Value |
+-----------------------+-------+
| show_compatibility_56 | ON |
+-----------------------+-------+
1 row in set (0.00 sec)
mysql> show variables like "%audit%";
+-------------------------------+-----------------------+
| Variable_name | Value |
+-------------------------------+-----------------------+
| server_audit_events | |
| server_audit_excl_users | |
| server_audit_file_path | server_audit.log |
| server_audit_file_rotate_now | OFF |
| server_audit_file_rotate_size | 1000000 |
| server_audit_file_rotations | 9 |
| server_audit_incl_users | |
| server_audit_loc_info | |
| server_audit_logging | OFF |
| server_audit_mode | 1 |
| server_audit_output_type | file |
| server_audit_query_log_limit | 1024 |
| server_audit_syslog_facility | LOG_USER |
| server_audit_syslog_ident | mysql-server_auditing |
| server_audit_syslog_info | |
| server_audit_syslog_priority | LOG_INFO |
+-------------------------------+-----------------------+
16 rows in set (0.00 sec)
另一種解決辦法需重啟DB
mysql> mysql_upgrade -u root -p --force
接著重啟
systemctl restart mysqld
沒有留言:
張貼留言