I\'d like to ask your help on a longstanding issue with php/mysql connections.
Every time I execute a \"SHOW PROCESSLIST\" command it shows me about 400 idle (Status
The above solutions like run a query
SET session wait_timeout=600;
Will only work until mysql is restarted. For a persistant solution, edit mysql.conf and add after [mysqld]:
wait_timeout=300 interactive_timeout = 300
Where 300 is the number of seconds you want.