Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)

2.2k views Asked by At

I m using Directadmin; It has been while that I m getting this error (knowing that mysqld is running):

Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)

would you please indicate me what is exactly the issue ( meaning of the "(13)" ) , and possible solution, thanks.

1

There are 1 answers

0
24x7servermanagement On

Can you please try to update following line in your my.cnf file and try to restart your MySQL services.

socket=/var/lib/mysql/mysql.sock