mysql啟動錯誤:Another MySQL daemon already running with the same unix socket.

[root@localhost ~]#/etc/init.d/mysqld restart

Stopping mysqld:[OK]

Another MySQL daemon already running with the same unix socket.

Starting mysqld: [FAILED]


原因多個Mysql進程使用了同一個socket。


兩個方法解決:


第一個是立即關機 使用命令 shutdown -h now 關機,關機後在啟動,進程就停止了。


第二個直接把mysql.sock檔改名即可。也可以刪除,推薦改名。


然後就可以啟動mysql了。

[root@localhost ~]#mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak
[root@localhost ~]# find / -name mysql.sock
[root@localhost ~]# etc/init.d/mysqld restart
Stopping mysqld:[OK]

Starting mysqld:[OK]

文章來源:http://6257393.blog.51cto.com/6247393/1363772

arrow
arrow

    Johnson峰 發表在 痞客邦 留言(0) 人氣()