解决一个mysqld启动失败的错误
ps aux | grep mysql没有找到mysqld进程,于是执行service mysqld start,提示。
centos: Another MySQL daemon already running with the same unix socket
于是重启service mysqld restart,启动失败,仍然提示此错误,
ll /var/run/mysqld 里面是空的,在stackoverflow找到答案,网络在文章最后:
我估计应该是上次没有正常关机引起的。
解决方法为:
手动执行一次正常的关机
#shutdown -h now
或者在Centos里,可以:
# mv /var/lib/mysql/mysql.sock /var/lib/mysq /mysql.sock.bak
# service mysqld start
来源: centos: Another MySQL daemon already running with the same unix socket – Stack Overflow