MySQL Error: Could not connect to the database server.

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/a/n/g/angerry/html/gallery/zen/functions-db.php on line 31

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/content/a/n/g/angerry/html/gallery/zen/functions-db.php on line 31
MySQL Query ( SELECT *, (date + 0) AS date FROM zpalbums WHERE `folder`='Australia' LIMIT 1; ) Failed. Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)