我安装mysql后出险如下提示:
[root@localhost root]# mysql -h localhost -u root
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
用源码安装的,启动信息如下:
[root@localhost root]# safe_mysqld &
[1] 1371
[root@localhost root]# Starting mysqld daemon with databases from /var/lib/mysql
mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@localhost root]#
还是不行啊!各位大哥,救命啊!别让我的PHP之路一开始就夭折!
[root@localhost mysql]# mysqladmin -V
mysqladmin Ver 7.15 Distrib 3.22.30, for pc-linux-gnu on i586
[root@localhost mysql]# mysql -u root -p mysql
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@localhost mysql]#