The server is not responding (or the local MySQL server’s socket is not correctly configured)
check for the mysql first, if not running restart and check, if running
search for mysql.sock file
make sym link in /tmp folder
#ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
Then restart the mysql and then the apache.
