I have an application that creates quite a few threads. I keep getting
the “mysql too many connections” error.
ActiveRecord does not close the connection once a thread had died out.
To make things worse mysql has a wait_timeout variable that would
basically kill off these connections for me, but there is a bug and I
can not change the value of it. I have tried at least 10 different ways
to change the variable and it simply won’t change. It’s defaulted to 8
hours, and I wanted to change it to 4 minutes.
So is there a way to close a threads database connection from the
Thanks for your help.