SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

in /projects/wush.net/pie/trunk/framework/classes/Db.php (521)

#0 /projects/wush.net/pie/trunk/framework/classes/Db.php(521): PDO->__construct('mysql:host=loca...', 'party', 'somecoolpass198...', Array)
#1 /projects/wush.net/pie/trunk/framework/classes/Db/Mysql.php(72): Db::pdo('mysql:host=loca...', 'party', 'somecoolpass198...', Array)
#2 /projects/wush.net/pie/trunk/framework/classes/Db/Query/Mysql.php(302): Db_Mysql->pdoConnect()
#3 /projects/wush.net/pie/trunk/framework/classes/Db/Query/Mysql.php(1099): Db_Query_Mysql->getSQL()
#4 /projects/wush.net/pie/trunk/framework/classes/Db/Row.php(1846): Db_Query_Mysql->fetchDbRows('Party_Party')
#5 [internal function]: Db_Row->retrieve_resume('*', false, false, Array, Array, Object(Db_Query_Mysql))
#6 /projects/wush.net/pie/trunk/framework/classes/Db/Row.php(1823): call_user_func_array(Array, Array)
#7 /projects/wush.net/party/trunk/handlers/party/preview.php(158): Db_Row->retrieve()
#8 [internal function]: party_preview_response_content(Array, NULL)
#9 /projects/wush.net/pie/trunk/framework/classes/Pie.php(631): call_user_func_array('party_preview_r...', Array)
#10 /projects/wush.net/pie/trunk/framework/classes/Pie.php(516): Pie::handle('party/preview/r...', Array, false, NULL)
#11 /projects/wush.net/party/trunk/handlers/pie/response/content.php(83): Pie::event('party/preview/r...')
#12 [internal function]: pie_response_content(Array, NULL)
#13 /projects/wush.net/pie/trunk/framework/classes/Pie.php(631): call_user_func_array('pie_response_co...', Array)
#14 /projects/wush.net/pie/trunk/framework/classes/Pie.php(516): Pie::handle('pie/response/co...', Array, false, NULL)
#15 /projects/wush.net/pie/trunk/framework/classes/Pie/Response.php(70): Pie::event('pie/response/co...')
#16 /projects/wush.net/pie/trunk/framework/handlers/pie/response.php(151): Pie_Response::fillSlot('content', 'default')
#17 [internal function]: pie_response(Array, NULL)
#18 /projects/wush.net/pie/trunk/framework/classes/Pie.php(631): call_user_func_array('pie_response', Array)
#19 /projects/wush.net/pie/trunk/framework/classes/Pie.php(516): Pie::handle('pie/response', Array, false, NULL)
#20 /projects/wush.net/pie/trunk/framework/handlers/pie/errors.php(56): Pie::event('pie/response', Array)
#21 [internal function]: pie_errors(Array, NULL)
#22 /projects/wush.net/pie/trunk/framework/classes/Pie.php(631): call_user_func_array('pie_errors', Array)
#23 /projects/wush.net/pie/trunk/framework/classes/Pie.php(516): Pie::handle('pie/errors', Array, false, NULL)
#24 /projects/wush.net/pie/trunk/framework/classes/Pie/Dispatcher.php(307): Pie::event('pie/errors', Array)
#25 /projects/wush.net/pie/trunk/framework/classes/Pie/Dispatcher.php(271): Pie_Dispatcher::errors(Object(PDOException), 'party', '')
#26 /projects/wush.net/pie/trunk/framework/classes/Pie/WebController.php(23): Pie_Dispatcher::dispatch()
#27 /projects/wush.net/party/trunk/web/index.php(38): Pie_WebController::execute()
#28 {main}