#Access of site shows the following error:
SQLSTATE[HY000] [2002] No such file or directory
#Cause
Socket file missing in info.php page
#Resolution
Find socket file from my.cnf and create a soft link. If socket file is "/var/lib/mysql/mysql.sock ". follow the below steps:
# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
# ls -la /tmp/mysql.sock
lrwxrwxrwx 1 root root 25 Apr 6 18:46 /tmp/mysql.sock -> /var/lib/mysql/mysql.sock