我安装了phpmyadmin后,连接时页面显示#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
可我在本机使用命令mysql -p 都可以进啊,请问这是什么原因啊!我的mysql版本是4.1.7,我使用ps查看也确实只有一个mysql服务启动,而且我已将/var/lib/mysql按777设置了,真奇怪了。
我在本机登陆mysql的信息如下:
[root@ps mysql]# bin/mysqld_safe --user=mysql &
[1] 28572
[root@ps mysql]# Starting mysqld daemon with databases from /usr/local/mysql/var
[root@ps mysql]# mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.7-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.