Another MySQL daemon already running with the same unix socket的解决
2016-10-24 09:25
555 查看
问题出现:
每周一需要备份一次数据库,即从服务器MySQL导出sql文件,再导入到我机器上虚拟机的MySQL里。但是今天早上连不上,我进入控制台用#service mysqld start强行启动,报Another MySQL daemon already running with the same unix socket错。
问题解决:
按关键字在百度查找,找到 http://wenku.baidu.com/link?url=MMZfHWxyl9maR_NP8OOSnRhnDzh5BhK82utrdx-E2Z0_CjR3V4xNjVrBLkzAuPxwO1U1NldnmEV-0vbzKaK6z-c5qcRs92JLFWeHtGCpDFu
发现它类似,于是按他的办法,进入目录 /var/lib/mysql,将文件mysql.sock改名,再用#service mysqld restart重启就好了。
有图有真相:
问题产生:
上面那篇网文说是断电导致的,我这边虚拟机不存在断电问题,可能和没有停止虚拟机就直接关闭窗口有关,导致/var/lib/mysql/mysql.sock没有及时删除,致使下次启动时误以为已经有一个mysql启动了。这个文件应该起mysql的stand alone文件作用。
每周一需要备份一次数据库,即从服务器MySQL导出sql文件,再导入到我机器上虚拟机的MySQL里。但是今天早上连不上,我进入控制台用#service mysqld start强行启动,报Another MySQL daemon already running with the same unix socket错。
问题解决:
按关键字在百度查找,找到 http://wenku.baidu.com/link?url=MMZfHWxyl9maR_NP8OOSnRhnDzh5BhK82utrdx-E2Z0_CjR3V4xNjVrBLkzAuPxwO1U1NldnmEV-0vbzKaK6z-c5qcRs92JLFWeHtGCpDFu
发现它类似,于是按他的办法,进入目录 /var/lib/mysql,将文件mysql.sock改名,再用#service mysqld restart重启就好了。
有图有真相:
问题产生:
上面那篇网文说是断电导致的,我这边虚拟机不存在断电问题,可能和没有停止虚拟机就直接关闭窗口有关,导致/var/lib/mysql/mysql.sock没有及时删除,致使下次启动时误以为已经有一个mysql启动了。这个文件应该起mysql的stand alone文件作用。
相关文章推荐
- Socket file /tmp/mysql.sock exists. Is another MySQL daemon already running with the same unix socke
- msyql启动错误 : Another MySQL daemon already running with the same unix socket.
- Unable to start MySQL service. Another MySQL daemon is already running with the same UNIX socket
- MySQL故障处理一例_Another MySQL daemon already running with the same unix socket
- [Mysql] Another MySQL daemon already running with the same unix socket.
- mysql启动报错:Another MySQL daemon already running with the same unix socket.
- Another MySQL daemon already running with the same unix socket.错误
- Another MySQL daemon already running with the same unix socket
- Another MySQL daemon already running with the same unix socket
- MySQL错误:Another MySQL daemon already running with the same unix socket.
- Another MySQL daemon already running with the same unix socket
- MYSQL 启动报错 Another MySQL daemon already running with the same unix socket.
- Another MySQL daemon already running with the same unix socket
- Another MySQL daemon already running with the same unix socket
- Another MySQL daemon already running with the same unix socket
- Another MySQL daemon already running with the same unix socket.
- Another MySQL daemon already running with the same unix socket
- Another MySQL daemon already running with the same unix socket.
- Another MySQL daemon already running with the same unix socket
- mysql启动报错:Another MySQL daemon already running with the same unix socket.