Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /web/htdocs/adage3/classes/class.Database.php on line 151

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

#0 /web/htdocs/adage3/classes/class.Database.php(154): Database->set_error('Can't connect t...')
#1 /web/htdocs/adage3/classes/class.Database.php(85): Database->connect_to_database()
#2 /web/htdocs/adage3/classes/class.Database.php(506): Database->build_connection()
#3 /web/htdocs/adage3/classes/class.Utilities.php(656): Database->get_real_escape_string('Index.php')
#4 /web/htdocs/adage3/classes/class.Modules.php(65): Utilities->escape_input('Index.php')
#5 /web/htdocs/adage3/index.php(19): Modules->__construct('Index.php')
#6 {main}
in /web/htdocs/adage3/classes/class.Database.php on line 127