MySQL Socket error in DA - Plz Help ?

pads

Verified User
Joined
Apr 22, 2009
Messages
22
Hello

Every time I try to add mysql database I get this error below
I'm using DirectAdmin panel

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

Here Screenshot
http://i46.tinypic.com/2qjge8x.jpg

How can I fix it ?
I hope to see some tips here
thanks
 
Is mysql running properly?

Check the service status to see if it is. Try restarting it and see if you still have the problem.
 
Is mysql running properly?

Check the service status to see if it is. Try restarting it and see if you still have the problem.

yes mysql is running, I tried restart it but same problem happen
 
here is some other commands I tried

[root@server1 ~]# file /var/lib/mysql/mysql.sock
/var/lib/mysql/mysql.sock: socket
[root@server1 ~]# ls -lh /var/lib/mysql/mysql.sock
srwxrwxrwx 1 mysql mysql 0 Dec 9 12:36 /var/lib/mysql/mysql.sock
[root@server1 ~]#


please anyone here can kindly guide me to way solve this problem ?
thanks
 
well the support staff of my vps hosting fixed it and said the problem was in permission

chmod -R a+rx /var/lib/mysql

hope that help other people
 
Back
Top