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??]
總結
以上是生活随笔為你收集整理的mysql启动报错:Another MySQL daemon already running with the same unix socket.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux下MySQL数据库常用基本操作
- 下一篇: Linux小宝典之理解Chroot模式