Where is defined timeout of persistent connections? Is it possible to change it?
how to change timeout for mysql persistent connections
Asked Answered
Related: How to setup a connection timeout depending of the user login in MySQL –
Matthus
Check out the wait_timeout
parameter for my.ini
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.