Sample Header Ad - 728x90

How to correctly set wait_timeout for MySql server

0 votes
0 answers
1362 views
I have a dedicated server to run a WordPress website. I use Nignx + php fpm + MySql 8.0. Php processes are set to run for a maximum of 60 seconds, and mysql is used just to run this website. I checked the value of wait_timeout and is set to 28800 (8 hours). WordPress doesn't use persistent connections. Given the php process duration can I lower wait_timeout value? I'm tempted to lower this value to 10 seconds but I'm quite newbie and I'm unsure about consequences of doing this. Can you help me understand better the implications?
Asked by Andrea C (1 rep)
Oct 17, 2021, 11:16 AM