I was stuck with a PDO Exception
PDOException: SQLSTATE[HY000] [2002] 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").
How do I get back or re-create the mysql.sock
file. Any idea regarding the PDO exception and how to resolve it.