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!
【解决方案】
按照错误提示,进入/etc/my.cnf文件,将socket 的路径修改为socket =/tmp/mysql.sock。查看/tmp目录的权限,最好是777。