MySQL

Plesk MySQL Server – Another MySQL daemon already running with the same unix socket

The past couple of mornings I have found my MySQL server has stopped on one of my CentOS servers that runs Plesk.  When you browse to Plesk you get the following error…

When you try and restart the MySQL sever you get the error…

I found a fix to get the server back up and running,  run the following commands…

This will remove the MySQL sock from /var/lib/mysql directory and try to start your MySQL service. When the server restarts, it will recreate the file. Note that it also sets the correct permissions on the file.