mysqladmin: connect to server at 'localhost' failed error: 'Too many connections'
Can't find a solution to reboot mysql
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
killall -sigterm mysqld. Mysql should capture the signal and gracefully shut down without needing to create a connection to the server. If you are running multiple parallel instances of mysqld, and only wish to shut down one, you'll have to figure out which instance you want to kill, either by
netstat -lnp and pick the listening port associated, or
lsof -n and locate the database storage path for the instance you wish to stop. Then using the discovered pid,
kill -sigterm <pid>