MySQL错误Another MySQL daemon already running with the same unix socket.
来源:互联网 发布:psp游戏推荐 知乎 编辑:程序博客网 时间:2024/05/19 19:56
CentOS系统下,自启动mysql服务后,重启之后无法开启mysql服务,可以关闭,但是无法开启。
在国外网站发现的解决方法。
原因多个Mysql进程使用了同一个socket。
两个方法解决:
第一个是立即关机 使用命令 shutdown -h now 关机,关机后在启动,进程就停止了。
第二个直接把mysql.sock文件改名即可。也可以删除,推荐改名。
然后就可以启动mysql了。
下面是国外原文
To prevent the problem from occurring, you must perform a graceful shutdown of the server from the command line rather than powering off the server.
# shutdown -h now
This will stop the running services before powering down the machine.
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
- 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
- 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.
- 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.
- 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.
- linux下用access()判断文件是否存在
- linux 常用网络配置文件
- 2014准备好了吗?
- 2013都发生了什么?
- NoSQL的简单分类
- MySQL错误Another MySQL daemon already running with the same unix socket.
- 我忘了经典款挖了
- 评教 出事了
- freebsd中vi命令简记
- PHP 通过单号查询快递( 申通、EMS、顺丰、圆通、中通、韵达、天天、汇通、全峰、德邦、宅急送)
- Webservice-SOAP(六)
- [hi3518] HI3518编译uboot 、kernel、rootfs、osdrv 使用说明
- 跨年巨献-----timit数据库下载(不再提供下载)
- quartus ii 6.1 task窗口 就是有那个RTL view 显示 | 无用脚设为三态