Author Topic: Warning: mysql_connect(): No such file or directory  (Read 6823 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Warning: mysql_connect(): No such file or directory
« 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:

Code: [Select]
find / -name mysql.sock
default location fix (if location is: /var/lib/mysql/mysql.sock):
Code: [Select]
/bin/ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
default location fix (if location is: /var/mysql/mysql.sock):
Code: [Select]
ln -s /var/mysql/mysql.sock /tmp/mysql.sock
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services