摘要: mysql5.7 客户端连接出现:INFORMATION_SESSION_VARIABLES feature is disabled问题:

mysqldump: Couldn't execute 'SELECT /*!40001 SQL_NO_CACHE */ * FROM `GLOBAL_STATUS`': The 'INFORMATION_SCHEMA.GLOBAL_STATUS' feature is disabled; see the documentation for 'show_compatibility_56' (3167)

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

 

从mysql5.7.6开始information_schema.global_status已经开始被舍弃,为了兼容性,mysql提供了向下兼容的参数:show_compatibility_56,默认是OFF。

 【mysql连接与mysqldump】INFORMATION_SESSION_VARIABLES feature is disabled 随笔

mysql5.7 客户端连接出现:INFORMATION_SESSION_VARIABLES feature is disabled问题:

从mysql5.7.6开始information_schema.global_status已经开始被舍弃,为了兼容性,mysql提供了向下兼容的参数:show_compatibility_56,默认是OFF。

临时调整:
set global show_compatibility_56=on;

修改mysql配置文件:
[mysqld]
show_compatibility_56=on

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄