mysql 5.7.10使用dbforget Studio 连接异常 提示:The‘INFORMATION_SCHEMA.SESSION_VARIABLES‘ feature is dis
查看mysql数据库启动时间
SELECT FROM_UNIXTIME(UNIX_TIMESTAMP(NOW()) - VARIABLE_VALUE, ‘%Y-%m-%d %H:%i:%s‘) AS db_started_time FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = ‘UPTIME‘;
--查看show_compatibility_56其值
MySQL> show variables like ‘%show_compatibility_56%‘;
--把show_compatibility_56打开
mysql> set global show_compatibility_56=on;
时间: 2024-10-22 05:53:52