- 论坛徽章:
- 93
|
回复 1# hxl
参考:
https://dev.mysql.com/doc/refman ... sysvar_wait_timeout
The number of seconds the server waits for activity on a noninteractive connection before closing it.
On thread startup, the session wait_timeout value is initialized from the global wait_timeout value or from the global interactive_timeout value, depending on the type of client (as defined by the CLIENT_INTERACTIVE connect option to mysql_real_connect()). See also c.
你 show variables 的时候是显示的当前的会话变量,两个不是同一个内容。具体没有深究,你试试看 interactive_timeout 这个配置调整看看。 |
|