mysql> system mysqldump -uroot -p -B mingongge >/root/mingongge_bak.sql Enter password: mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect 由于mysql默认的sock路径是'/var/lib/…
[root@slave ~]# /etc/init.d/mysql status ERROR! MySQL is running but PID file could not be found [root@slave ~]# ps aux|grep mysql root ? S : : /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/mysql/data --pid-file=/mysql/data/slave.pid root pts/…