问题解决了
得restart一下mysql
[root@Zzone ~]# /etc/rc.d/init.d/mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
[root@Zzone ~]# mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.1.11
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
【 在 ukbee (小蜜蜂) 的大作中提到: 】
: [root@Zzone ~]# mysql -u root -p
: Enter password:
: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/my
: ...................
--
FROM 130.88.102.*