Rootop 服务器运维与web架构

The ‘INFORMATION_SCHEMA.SESSION_VARIABLES’ feature is disabled; see the documentation for ‘show_compatibility_56’

在用MySQL-Front时报错。


The ‘INFORMATION_SCHEMA.SESSION_VARIABLES’ feature is disabled; see the documentation for ‘show_compatibility_56’

原因:
从mysql5.7.6开始 information_schema.global_status 已经开始被舍弃(表不存在),为了兼容性,此时需要打开show_compatibility_56

临时打开:
进入mysql命令行执行:

MySQL> set global show_compatibility_56=on;
MySQL> show variables like '%show_compatibility_56%';

永久打开:
修改mysql配置文件my.ini/my.cnf
在 [mysqld]段添加一行

show_compatibility_56 = 1

重启MySQL生效。

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/4545.html

作者:Venus

服务器运维与性能优化

评论已关闭。