The “Too many connections” problem is a common issue with
applications using excessive permissions (and those that grant
said global permissions). MySQL will always grant a user with
SUPER privileges access to a DB to investigate the problem with a
SHOW PROCESSLIST and where you can check the limits. I however
found the following.
mysql> show global variables like 'max_connections';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 2000 |
+-----------------+-------+
1 row in set (0.00 sec)
mysql> show global status like 'max%';
+----------------------+-------+
| Variable_name | Value |
+----------------------+-------+
| Max_used_connections | 6637 |
+----------------------+-------+
1 row in set (0.00 sec)
How can the max_used_connection exceed max_connections? This is
possible because you can dynamically change max_connections in a
normal MySQL environment. However …
[Read more]