|
./mysqladmin -u root -p ""
Enter password:
./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!
./mysqldump --databases DB1
./mysqldump: Got error: 2002: Can't connect to local MySQL server through socket socket '/tmp/mysql.sock' (2)'
'/tmp/mysql.sock' (2) when trying to connect
执行很多命令的时候都提示什么?Can't connect to local MySQL server through sockesocket '/tmp/mysql.sock' (2)'
请问这是为什么。
还有/tmp/下面要本就没有这个文件夹和文件,mysql.sock 是在/var/lib/mysql的目录,文件属性中有个“S”请问这个“S”表是什么属性?:help :help |
|