比如我用 mysqladmin ping
[bladesj@funny bin]$ mysqladmin pingmysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
(2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
[bladesj@funny bin]$ mysqladmin pingmysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
(2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
端口会不会已被使用呀