Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory") in /home/kragozor/lib/db.php on line 49

Fatal error: Uncaught exception 'Exception' with message 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")' in /home/kragozor/lib/db.php:52 Stack trace: #0 /home/kragozor/lib/db.php(11): CDB->open() #1 /home/kragozor/public_html/books/catalog.php(14): getdb() #2 /home/kragozor/public_html/index.php(98): include('/home/kragozor/...') #3 {main} thrown in /home/kragozor/lib/db.php on line 52