In case you have troubles starting your mysql service or you are receiving the following error message when running scripts:
Another MySQL daemon already running with the same unix socket.
Starting mysqld: [FAILED]
You have two options to resolve the issue:
- You can restart gracefully your server using the following command:
# shutdown -h now
- To move mysql.sock file and start service:
# mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak
# service mysqld start