Another MySQL daemon already running with the same unix socket” – error while starting MYSQL

The root cause of the above error is that MySQL was not closed properly, during database shutdown. Due to this socket file is not removed by MySQL and had to be removed manually.

Verify that MySQL is not running on your system:

# ps aux | grep -i sql
root     10154  0.0  0.0 103252   840 pts/0    S+   11:21   0:00 grep -i sql

Remove leftover socket file using following command:

# rm -Rf /var/lib/mysql/mysql.sock

Start the MySQL database and verify if it’s running properly.

Related posts

Latest posts

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *