博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Another mysql daemon already running with the same unix socket
阅读量:7063 次
发布时间:2019-06-28

本文共 751 字,大约阅读时间需要 2 分钟。

在国外网站发现的解决方法。

原因多个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

posted on
2014-02-24 21:02 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/ruiy/p/mysql_sock.html

你可能感兴趣的文章
Java superArray2
查看>>
这几道Java集合框架面试题在面试中几乎必问
查看>>
HDU4545:魔法串(DP)
查看>>
协程补充
查看>>
ASS字幕制作和压制教程
查看>>
ccf 送货
查看>>
(27)回复泛型,注解、日志组件、枚举在实际项目中的使用
查看>>
安装配置Glusterfs
查看>>
分治法排序
查看>>
【WEBAPI】常用参数传递方法总结
查看>>
UVA11825 黑客的攻击 Hackers' Crackdown 状压DP,二进制,子集枚举
查看>>
爬虫间隔抓取服务器网页
查看>>
const define区别
查看>>
Python 面向对象(初级篇)
查看>>
头指针与头结点的异同
查看>>
学习Python的捷径
查看>>
方法中(+),(-)的区分
查看>>
Django学习(五) 定义视图以及页面模板
查看>>
关于pycharm中导入自己写的模块没有智能提示的解决办法
查看>>
【转载】K-means聚类算法
查看>>