Control Web Panel

WebPanel => MySQL => Topic started by: Administrator on May 16, 2014, 07:25:58 PM

Title: Warning: mysql_connect(): No such file or directory
Post by: Administrator on May 16, 2014, 07:25:58 PM
If you get this error then you will need to find your mysql.sock location, try searching your mysql.sock location with this command:

find / -name mysql.sock

default location fix (if location is: /var/lib/mysql/mysql.sock):
/bin/ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

default location fix (if location is: /var/mysql/mysql.sock):
ln -s /var/mysql/mysql.sock /tmp/mysql.sock