mysql -uuser -ppass db
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
when use root user,It is ok.Obviously, it is privilege problem.
Try to check the mysql.sock privelege. If it is ok, then check its father dir to check.
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/545828/viewspace-908166/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/545828/viewspace-908166/