how to change timeout for mysql persistent connections
Asked Answered
A

1

12

Where is defined timeout of persistent connections? Is it possible to change it?

Affixation answered 9/2, 2011 at 16:58 Comment(1)
V
10

Check out the wait_timeout parameter for my.ini

Vansickle answered 9/2, 2011 at 17:1 Comment(4)
i added wait_timeout=120 in my.cnf but still have same value as before (checked with select @@wait_timeout;)Affixation
Also check interactive_timeout.Sidneysidoma
@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.Vansickle
sure i restarted it. but it was necessary to add interactive_timeout option, as mark rose mention.Affixation

© 2022 - 2024 — McMap. All rights reserved.