mysql can't connect error about privilege----not root user

huakaibird發表於2007-04-02

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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章