|
[root@HEZOF bin]# ./mysqld_safe --user=mysql&
[1] 3261
[root@HEZOF bin]# Starting mysqld daemon with databases from /var/lib/mysql
[root@HEZOF bin]# ./mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@HEZOF bin]# ./mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@HEZOF bin]# ./mysqladmin -u root password 'mysql'
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[root@HEZOF bin]#
第一次运行mysqladmin时就出现这个问题,为什么哦??? |
|