Where is defined timeout of persistent connections? Is it possible to change it?
Asked
Active
Viewed 3.6k times
12
-
Related: [How to setup a connection timeout depending of the user login in MySQL](http://stackoverflow.com/q/243644/1288) – Bill the Lizard May 15 '13 at 13:22
1 Answers
10
Check out the wait_timeout
parameter for my.ini

Marc B
- 356,200
- 43
- 426
- 500
-
i added wait_timeout=120 in my.cnf but still have same value as before (checked with select @@wait_timeout;) – user198003 Feb 09 '11 at 17:19
-
8
-
@user198003: did you restart mysql after changing the value? There may be multiple my.ini's on your system - make sure you're changing the right one. – Marc B Feb 09 '11 at 17:33
-
1sure i restarted it. but it was necessary to add interactive_timeout option, as mark rose mention. – user198003 Feb 09 '11 at 19:24