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/xpress/public_html/core/classes/database.php on line 718