本文主要是介绍MySQL错误Another MySQL daemon already running with the same unix socket,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
前提:突然停电再来电后,服务器的mysql无法重新自启动,人工启动后发生如下问题:
- 查看数据库是否启动: /etc/init.d/mysqld status
- 启动数据库: service mysqld start
- 出现错误:Another MySQL daemon already running with the same unix socket.
Based on Centos, an additional method for getting it back up again when you run into this problem is to move mysql.sock:
- mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak
- service mysqld start
Restarting the service creates a new entry called mqsql.sock
这篇关于MySQL错误Another MySQL daemon already running with the same unix socket的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!