mysql connection timeout, inactivity

2019-03-05 11:55发布

问题:

I have MySQL server installed and I would like it to stop dropping inactive connections. Which option do I need to adjust? The MySQL server is installed on a Windows machine.

Thanks

回答1:

You are looking for the MySQL wait_timeout variable.

SET @@GLOBAL.wait_timeout=2147483