I was stuck with a PDO Exception
PDOException: SQLSTATE[HY000]  Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in lock_may_be_available() (line 167 of home/../includes/lock.inc).
In order to resolve that I tried to recreate the symbolic link using the command. I'm working on the linux server.
ln -s /home/../mysql/tmp/mysql.sock /tmp/mysql.sock
when executed the above sql statement, there was no change with the PDO exception. And later, I mistakenly deleted the
mysql.sock file in
"/home/../mysql/tmp/" (not in "/tmp").
Now, How do I get back or re-create the
mysql.sock file. And anyidea regarding the PDO exception, how to resolve it.