ERROR 1040…again
A pretty common topic in Support tickets is the rather infamous
error: ERROR 1040: Too many connections
. The issue
is pretty self-explanatory: your application/users are trying to
create more connections than the server allows, or in other
words, the current number of connections exceeds the value of the
max_connections
variable.
This situation on its own is already a problem for your
end-users, but when on top of that you are not able to access the
server to diagnose and correct the root cause, then you have a
really big problem; most times you will need to terminate the
instance and restart it to recover.
Root user can’t connect either! Why!?
In a properly set up environment, a user with SUPER
privilege will be able to access the instance and diagnose the
error 1040 problem that is causing connection starvation, as
explained in the manual:
…
[Read more]