Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/stronsay/connect.php on line 13

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' in /home/stronsay/connect.php:14 Stack trace: #0 /home/stronsay/connect.php(14): PDO->__construct('mysql:host=loca...', 'stronsay', 'Mary1mmaculate') #1 /home/stronsay/public_html/bookshop/index.php(21): require_once('/home/stronsay/...') #2 {main} thrown in /home/stronsay/connect.php on line 14