CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] Connection refused

/www/wwwroot/www.dimeng.net/dimeng_new/framework/yiilite.phphtml(8586)

8574 if(empty($this->connectionString))
8575 throw new CDbException('CDbConnection.connectionString cannot be empty.');
8576 try
8577 {
8578 $this->_pdo=$this->createPdoInstance();
8579 $this->initConnection($this->_pdo);
8580 $this->_active=true;
8581 }
8582 catch(PDOException $e)
8583 {
8584 if(YII_DEBUG)
8585 {
8586 throw new CDbException('CDbConnection failed to open the DB connection: '.
8587 $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
8588 }
8589 else
8590 {
8591 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
8592 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
8593 }
8594 }
8595 }
8596 }
8597 protected function close()
8598 {

Stack Trace

#8
+
 /www/wwwroot/www.dimeng.net/dimeng_new/protected/components/Bagecms.phphtml(98): CActiveRecord->__construct()
093 * @param string $params [description]
094 * @return [type] [description]
095 */
096 private static function _getList( $model = '', $id, $params = '' ) {
097 $model = ucfirst( $model );
098 $bagecmsModel = new $model();
099 $params['limit'] && $array['limit'] = $params['limit'];
100 $params['where'] && $array['condition'] = $params['where'];
101 $params['order'] && $array['order'] = $params['order'];
102 $params['select'] && $array['select'] = $params['select'];
103 $params['offset'] && $array['offset'] = $params['offset'];
#9
+
 /www/wwwroot/www.dimeng.net/dimeng_new/protected/components/Bagecms.phphtml(42): Bagecms::_getList("link", "link_column", array("where" => "status_is='Y' AND type= 1", "order" => "t.sort_order ASC"))
37 if ( $value === false )
38 return self::_getList( $model, $id, $params );
39 else
40 return $value;
41 } else {
42 return self::_getList( $model, $id, $params );
43 }
44 }
45
46
47 /**
#10
+
 /www/wwwroot/www.dimeng.net/dimeng_new/protected/components/XFrontBase.phphtml(32): Bagecms::getList("link", "link_column", array("where" => "status_is='Y' AND type= 1", "order" => "t.sort_order ASC"))
27 //检测系统是否已经安装
28 //if(!is_file(WWWPATH.DS.'data'.DS.'install.lock'))
29 //$this->redirect(array('/install'));
30 //系统配置
31 $this->_conf = XXcache::system('_config');
32 $this->_link_column = (array)Bagecms::getList('link','link_column',array('where'=>"status_is='Y' AND type= 1",'order'=>'t.sort_order ASC'));
33 $this->_seoTitle = $this->_conf['seo_title'];
34 $this->_seoKeywords = $this->_conf['seo_keywords'];
35 $this->_seoDescription = $this->_conf['seo_description'];
36 /*
37 "home" =>"<h6 class='logo_letter10'>创新u乐无限未来</h6>",
2021-05-10 15:50:32 nginx/1.18.0 Yii Framework/1.1.16
同乐城国际手机版官方网页壹定发edf乐虎国际手机网页版app下载