Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/anmarque/public_html/core/DB.php on line 28

Fatal error: Uncaught exception 'Exception' with message 'Cannot connect to MySQL server at host "localhost" as "anmarque_irealty":Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' in /home/anmarque/public_html/core/DB.php:29 Stack trace: #0 /home/anmarque/public_html/core/DB.php(29): core\DB::connect() #1 /home/anmarque/public_html/core/DB.php(24): core\DB->connect() #2 /home/anmarque/public_html/core/WebApplication.php(277): core\DB->init() #3 /home/anmarque/public_html/core/WebApplication.php(252): core\WebApplication->createService() #4 /home/anmarque/public_html/core/WebApplication.php(262): core\WebApplication->get() #5 /home/anmarque/public_html/core/WebApplication.php(389): core\WebApplication->__get('DB') #6 /home/anmarque/public_html/core/WebApplication.php(380): core\WebApplication->isModuleEnabled() #7 /home/anmarque/public_html/core/WebApplication.php(238): core\WebApplication->isClassAllowed() #8 /home/anmarque/public_html/core/WebApplication.php(152): core\WebApplication->g in /home/anmarque/public_html/core/DB.php on line 29