Comment réparer “Another MySQL daemon already
running with same Unix socket” sur Linux
3 étapes :
1- Valider qu'il n'est vraiment pas démarré
[root@db-server]# service mysqld start
Another MySQL daemon already running with
the same unix socket.
Starting
mysqld:
[FAILED]
[root@db-server]# service mysqld stop
Stopping
mysqld:
[ OK ]
[root@db-server]# netstat -tlnp
[root@db-server]# ps awux | grep mys
root 24104 0.0 0.0
105312 916 pts/0 S+
09:49 0:00 grep mys
[root@db-server]# cd /var/lib/mysql/
2-
Dépanner
[root@db-server
mysql]# mv mysql.sock mysql.sock.bac
[root@db-server mysql]# /etc/init.d/mysqld start
Démarrage de
mysqld :
[ OK ]
3-
Valider qu'il est dépanné et faire le ménage
[root@db-server
mysql]# ps awux | grep mysql
root 24783 0.0 0.1 106064 1480
pts/0 S 09:54 0:00
/bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql
--socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid
--basedir=/usr --user=mysql
mysql 24885 0.0 1.9 377476 19764
pts/0 Sl 09:54 0:00
/usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql
--log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
--socket=/var/lib/mysql/mysql.sock
root 24993 0.0 0.0
105316 924 pts/0 S+
09:56 0:00 grep mysql
[root@db-server mysql]# rm -f /var/lib/mysql/mysql.sock.bac
L'information, n'est-elle pas
précieuse ? Partageons la tous ensemble !
© Juin 2017
Roger YERBANGA
www.yerbynet.com