MySql修改超时断开时间

1
2
3
4
5
6
7
show session variables where variable_name ='wait_timeout' or variable_name = 'interactive_timeout';

-- 默认值 28800 8小时

set global wait_timeout = 31536000;

set global interactive_timeout = 31536000;