Which MySQL queries are causing this error message?
This issue, Too Many Connection error occurs when the max_connections variable reaches its maximum threshold value.
Usually, the value for max_connections is defined at the configuration file. By increasing this variable value, this error will resolve.
To see the current value, try the following command:
mysql&gt; show global variables like '%max_connections%';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 300   |
+-----------------+-------+
1 row in set (0.02 sec)

When the defined limit reaches, all users will get the error, this is not user specific. However, MySQL allows you to define the user specific values.
After login as root or user with SUPER privilege, you can run the below command to identify the currently processing queries:
mysql&gt; show full processlist;

Note: even if you get Too Many Connections error, you can still login to server, using the root or user with SUPER privilege.  MySQL by default will consider maximum allowed connection as max_connection + 1 for SUPER user to fix this issue.
By increasing this variable value, this issue will be resolved.
mysql&gt; SET global max_connections = 1000;

If you wish this changes to be permanent, edit the configuration file (my.ini), and change the value for max_connections variable under [mysqld] section. This approach requires a server restart.
[mysqld]
max_connections = 1000;

Changing this variable value to a higher value in a system with limited resource may lead to performance issues related to memory. Check this page for how to fix MySQL Too Many Connections and other workarounds. I hope this answer will help you.