李唐SEO博客中国著名高端SEO/SEM专家顾问,专注于Google SEO、百度SEO、黑帽SEO、站群霸屏、百万级以上流量提升。

MySQL错误Another MySQL daemon already running with the same unix socket.

发布时间:2014年6月16日 / 分类:建站知识 / 1238 次浏览 / 抢沙发

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

关键字:

建议订阅本站,及时阅读最新文章!
【上一篇】 【下一篇】
正文部分到此结束,如果觉得不错请点击广告支持~

等您坐沙发呢!

发表评论


订阅李唐SEO博客 RSS
标签
热门文章
分类
最新文章
最近回复
  • © 李唐SEO博客
  • /
  • 技术支持:李唐SEO顾问服务
  • /