Jigar Patel Driving fast in a slow lane!

MySQL "Too many connections" Error

June 15, 2011 / Jigar Patel

“Too many connections” error means that all available connections are in use by other clients. The number of connections permitted is controlled by max_connections setting in /etc/my.cnf file.

To fix this issue you can either increase the number of max_connections (not recommended) or analyze active processes and kill them. Running this script will kill all active processes.