I experienced an incident that my connections are full. Even I as an administrator I cannot log to MySQL due to "too many connections.". Does anybody knows how to setup this max_connections+1? I use version 5.6.14. Thank you very much.
https://dev.mysql.com/doc/refman/5.5/en/too-many-connections.html
Best Answer
Here is your basic problem: You most likely have many users in
mysql.user
other thanroot@localhost
with the SUPER privilege. Please note the MySQL Documentation in your question:You need to run this
You need to take away the SUPER privilege from those users.
The fastest way to revoke the SUPER privilege from those users is to login to mysql as
root@localhost
and execute the following:GIVE IT A TRY !!!
NOTE #1 : I have discussed this before on
Jul 06, 2012
in How to resolve too many connections and fatal error in mysql running on vpsNOTE #2 : If you have other mysql users doing database backups and cronjobs, you need to make sure those users have all needs privileges for their respective operations after removing the SUPER privilege.
NOTE #3 : If you do not use other users to connect to mysql, you need to create extra users that do no have all privileges, but still have enough privileges for needed operations.