In this post ,I am sharing the error message ” Another MySQL daemon already running with the same unix socket “. The error found in our own sharadchhetri.com blog while restarting the MySQL server.It is at 6:55 PM IST,I noticed the weird error message on blog,”Error establishing a database connection”.I log into the server and restarted the MySQL service by simply typing /etc/init.d/mysqld restart
.But I got the error as given below –
[root@sharadchhetri-server ~]# /etc/init.d/mysqld start Another MySQL daemon already running with the same unix socket. Starting mysqld: [FAILED] [root@sharadchhetri-server ~]#
So,I have resolved the issue by removing mysql.sock file.Given below is the method –
[root@sharadchhetri-server ~]# rm /var/lib/mysql/mysql.sock rm: remove socket `/var/lib/mysql/mysql.sock'? y [root@sharadchhetri-server ~]#
Then started the MySQL service
[root@sharadchhetri-server ~]# /etc/init.d/mysqld start Starting mysqld: [ OK ] [root@sharadchhetri-server ~]#
🙂 And error is gone.Issue is resolved.