Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Warning: mysql_close() expects parameter 1 to be resource, boolean given in /home/httprabi/public_html/includes/database.inc.php on line 180