msyql启动错误 : Another MySQL daemon already running with the same unix socket.

在Linux上安装完成mysql并启动时,出现如下的错误:

[root@localhost Desktop]# service mysqld start
Another MySQL daemon already running with the same unix socket.
Starting mysqld:                                           [FAILED]

原因:多个Mysql进程使用了同一个socket

解决办法1:删除mysql.sock文件

[root@localhost local]# mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak 
mv: overwrite `/var/lib/mysql/mysql.sock.bak'? y

重新启动mysql :

[root@localhost local]# service mysqld start
Starting mysqld:                                           [  OK  ]

解决办法2 : 立即关机 使用命令 shutdown -h now 关机,关机重启进程就停止了

[root@localhost local]# shutdown -u now

msyql启动错误 : Another MySQL daemon already running with the same unix socket._第1张图片

msyql启动错误 : Another MySQL daemon already running with the same unix socket._第2张图片

你可能感兴趣的:(技术文档)