ERROR 1040 (HY000): Too many connections
An application might face this issue when all the defined
max_connections parameter value is exhausted.
mysqld reserve a +1 connection (i.e., max_connections + 1)
for the user who is having the SUPER privilege.
When this issue appears, Only the user with the SUPER privileges
can be connected if any other user who has SUPER privileges is
not already connected to the database and we have reached
max_connections.
1. Always make sure to DON'T give the SUPER privilege to any application user or any user which is being used inside the scripts. Because if that user has …
[Read more]