mysql启动报错:Another MySQL daemon already running with the same unix socket.

来源:互联网 发布:mac电脑打字特别卡 编辑:程序博客网 时间:2024/06/05 18:58
[root@localhost ~]# /etc/init.d/mysqld restartStopping mysqld:                                           [  OK  ]Another MySQL daemon already running with the same unix socket.Starting mysqld:                                           [FAILED]

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

解决方案:

  • 删除mysql.sock 文件
[root@localhost ~]# rm -fr /var/lib/mysql/mysql.sock[root@localhost ~]# etc/init.d/mysqld restartStopping mysqld:                                           [  OK  ]Starting mysqld:                                           [  OK  ]
0 0