… production? [percona@sandbox msb_5_0_87]$ ./use ERROR 1040 (00000): Too many connections Just happened to one of our customers. Want to know… input statement. mysql [localhost] {msandbox} ((none)) > select @@global.max_connections; +————————–+ | @@global.max_connections | +————————–+ | 5000 | +————————–+ 1 row in set (0.00 sec) Credit…
Comment: Debugging sleeping connections with MySQL
… dbconnect() fails for mysql_errno() reason 1040 (too many connections). If it does i run shell_exec(“httpd restart”) and the sleeping connections are gone.

