启动mysql时,提示“Another MySQL daemon already running with the same unix socket.”解决方法

使用口令service mysqld restart重启mysql时,报“Another MySQL daemon already running with the same unix socket.”,主要原因是mysql进程被占用,没有彻底退出,导致无法重新启动,如下图:

启动mysql时,提示“Another MySQL daemon already running with the same unix socket.”解决方法

解决方法:

切换到错误提示路径下/var/lib/mysql,修改mysql.sock文件名称,然后重新启动mysql服务,即可。

启动mysql时,提示“Another MySQL daemon already running with the same unix socket.”解决方法

博文转自于:http://www.itzoo.net/db/663.html