MySQL“Another MySQL daemon already running with the same unix socket”的处理和思考

今天早上起来发现mysql登录不上了,service mysqld restart先包正确再报失败,报的错误就是Another MySQL daemon already running with the same unix socket. 太闹心了;大早上的小样儿就给我添堵,看大爷怎么收拾你。

直接干死这个:rm var/lib/mysql/mysql.sock

然后起服务:service mysqld start

我去!竟然不行!上头了!

重头来:shutdown -h now

进来之后:mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak;

然后service mysqld start

OK!终于可以安心的吃个早饭了。

仔细想了一下,昨晚上使用mysql的时候跟平常的操作都是一样的,平时都没事啊,怎么会出现这种问题,后来度娘了一下,原来昨晚虚拟机关机直接就断电,mysql的进程没有正常闭关。所以就悲剧了!看到网上有个解决办法是:rm mysql.sock,但是我头一遍做的时候没有成功。

虽然不是什么大问题,但是大早上的挺闹心的!

时间: 2024-08-26 08:44:08

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". [[email protected]121 sbin]# service mysqld status mysqld 已停 [[email protected]-121 sbin]# service mysqld start Another MySQL daemon already running with the same unix

Another MySQL daemon already running with the same unix socket.

问题描述: 查看MySQL进程的状态: [[email protected] lib]# service mysqld statusmysqld is stopped 发现是关闭的,但是启动MySQL却报错 [[email protected] lib]# service mysqld startAnother MySQL daemon already running with the same unix socket. 解决方法:将mysql.sock备份一下,然后重新启动 mv /var/l

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

启动mysql 报错: [[email protected] ~]# /etc/init.d/mysqld start Socket file /tmp/mysql_slave.sock exists. Is another MySQL daemon already running with the same unix socket? 原因多个Mysql进程使用了同一个socket. 两个方法解决: 第一个是立即关机 使用命令 shutdown -h now 关机,关机后在启动,进程就停止了.

Mysql启动时提示:Another MySQL daemon already running with the same unix socket.

场景:vmvare虚拟机.centos7.mysql5.7 解决: mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak 参考: http://stackoverflow.com/questions/20407292/centos-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

Unable to start MySQL service. Another MySQL daemon is already running with the same UNIX socket 特征 如果你遇到如下所列的任何问题之一,本文也许能帮到你. MySQL starts/stops properly when started/stopped with the mysqld service restart, but MySQL does not start when a server is

mysql(一)--mysql架构和执行流程

1. 一条查询 SQL 语句是如何执行的? 我们的程序或者工具要操作数据库,第一步要做什么事情? 跟数据库建立连接. 1.1. 通信协议 首先,MySQL 必须要运行一个服务,监听默认的 3306 端口. 在我们开发系统跟第三方对接的时候,必须要弄清楚的有两件事. 第一个就是通信协议,比如我们是用 HTTP 还是 WebService 还是 TCP? 第二个是消息格式,比如我们用 XML 格式,还是 JSON 格式,还是定长格式?报文 头长度多少,包含什么内容,每个字段的详细含义. 比如我们之前

lnmp1.1 转移mysql数据库的问题 MySQL: Starting MySQL….. ERROR! The server quit without updating PID file

1.安装前修改/etc/my.cnf,加入datadir         = /data/mysql/   再执行sed -i 's/skip-locking/skip-external-locking/g' /etc/my.cnf 之后的命令,将里面的给目录加权限修改为你新的目录2.安装后停止mysql,移动/usr/local/mysql/var/ 到新目录,修改/etc/my.cnf ,查找[mysqld]  ,在下面加入datadir         = /data/mysql/  ,给

mysql初学,mysql修改,mysql查找,mysql删除,mysql基本命令

Mysql 下载地址https://dev.mysql.com/downloads/mysql/ 1.连接Mysql格式: mysql -h主机地址 -u用户名 -p用户密码 1.连接到本机上的MYSQL.首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root -p,回车后提示你输密码.注意用户名前可以有空格也可以没有空格,但是密码前必须没有空格,否则让你重新输入密码. 如果刚安装好MYSQL,超级用户root是没有密码的,故直接回车即可进入到MYSQL中了,M

mysql之 mysql 5.6不停机主主搭建(活跃双主基于日志点复制)

环境说明:版本 version 5.6.25-log 主库ip: 10.219.24.25从库ip:10.219.24.22os 版本: centos 6.7已安装热备软件:xtrabackup 防火墙已关 补充:主从复制原理: http://blog.csdn.net/zhang123456456/article/details/72972701mysql 5.6安装 :http://blog.csdn.net/zhang123456456/article/details/53608554xt