Another mysql daemon already running with the same unix socket
在国外网站发现的解决方法。
原因多个Mysql进程使用了同一个socket。
两个方法解决:
第一个是立即关机 使用命令 shutdown -h now 关机,关机后在启动,进程就停止了。
第二个直接把mysql.sock文件改名即可。也可以删除,推荐改名。
然后就可以启动mysql了。
下面是国外原文
To prevent the problem from occurring, you must perform a graceful
shutdown of the server from the command line rather than powering off the
server.
# shutdown
-h now
This will stop the running services before powering down the
machine.
Based on Centos, an additional method for getting it back
up again when you run into this problem is to move
mysql.sock:
# mv /var/lib/mysql/mysql.sock
/var/lib/mysql/mysql.sock.bak
#
service mysqld start
Restarting the
service creates a new entry called mqsql.sock
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。