CDbException

CDbConnection 无法开启数据库连线: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) (/www/library/yii/framework/db/CDbConnection.php:382)

#0 /www/library/yii/framework/db/CDbConnection.php(331): CDbConnection->open()
#1 /www/library/yii/framework/db/CDbConnection.php(309): CDbConnection->setActive(true)
#2 /www/library/yii/framework/base/CModule.php(388): CDbConnection->init()
#3 /www/library/yii/framework/base/CModule.php(104): CModule->getComponent('db')
#4 /www/zhanqun1/protected/controllers/SiteController.php(475): CModule->__get('db')
#5 /www/zhanqun1/protected/controllers/SiteController.php(113): SiteController->__getUid()
#6 /www/library/yii/framework/web/actions/CInlineAction.php(50): SiteController->actionIndex()
#7 /www/library/yii/framework/web/CController.php(309): CInlineAction->runWithParams(Array)
#8 /www/library/yii/framework/web/CController.php(287): CController->runAction(Object(CInlineAction))
#9 /www/library/yii/framework/web/CController.php(266): CController->runActionWithFilters(Object(CInlineAction), Array)
#10 /www/library/yii/framework/web/CWebApplication.php(276): CController->run('index')
#11 /www/library/yii/framework/base/CErrorHandler.php(310): CWebApplication->runController('site/index')
#12 /www/library/yii/framework/base/CErrorHandler.php(183): CErrorHandler->render('error', Array)
#13 /www/library/yii/framework/base/CErrorHandler.php(108): CErrorHandler->handleException(Object(CHttpException))
#14 /www/library/yii/framework/base/CApplication.php(713): CErrorHandler->handle(Object(CExceptionEvent))
#15 [internal function]: CApplication->handleException(Object(CHttpException))
#16 {main}