Just the code you need for responding to this error.
The following message can sometime prevent MySQL from (re)starting:
Another MySQL daemon already running with the same unix socket.
Sometimes, this message displays when you KNOW there is not another MySQL daemon running on the same unix socket, because you just issued a “stop” command or performed a graceful reboot, or you just checked running services and there simply isn’t a MySQL daemon running (a clue is that MySQL went away or is otherwise not working!).
When you receive this error message in your terminal window, on CentOS servers, running the following command may well clear up these problems:
mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak
service mysqld start
The first line of code moves the mysql.sock file to a backup location, while the second instructs mysqld (the MySQL daemon) to start. This should get things back up and running…
Now to discover why things broke in the first place!
Leave a comment below if the above helped (or didn’t help) you to get a MySQL issue resolved.
1 thought on “Fix MySQL Server Issue: “Another MySQL daemon already running with the same unix socket.””
You need to be running things as root, if you are not, then type “sudo” at the start of your command, or add the line “sudo -i” before entering additional commands.