万博手机官网登录网页版_手机万博官网最新版本_手机万博版登录

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

/data/wwwroot/wwwhzqingcang/package/framework/db/CDbConnection.php(381)

369                 throw new 万博手机官网登录网页版_手机万博官网最新版本_手机万博版登录('CDbConnection.connectionString cannot be empty.');
370             try
371             {
372                 Yii::trace('Opening DB connection','system.db.CDbConnection');
373                 $this->_pdo=$this->createPdoInstance();
374                 $this->initConnection($this->_pdo);
375                 $this->_active=true;
376             }
377             catch(PDOException $e)
378             {
379                 if(YII_DEBUG)
380                 {
381                     throw new 万博手机官网登录网页版_手机万博官网最新版本_手机万博版登录('CDbConnection failed to open the DB connection: '.
382                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
383                 }
384                 else
385                 {
386                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.万博手机官网登录网页版_手机万博官网最新版本_手机万博版登录');
387                     throw new 万博手机官网登录网页版_手机万博官网最新版本_手机万博版登录('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
388                 }
389             }
390         }
391     }
392 
393     /**

Stack Trace

#7
+
 /data/wwwroot/wwwhzqingcang/application/models/Station.php(6): CActiveRecord::model("Station")
01 <?php
02 
03 class Station extends CActiveRecord{
04     public static function model($className=__CLASS__)
05     {
06         return parent::model($className);
07     }
08 
09     public function tableName()
10     {
11         return '{{station}}';
#8
+
 /data/wwwroot/wwwhzqingcang/application/functions/reception.php(39): Station::model()
34                 $s = 'main';
35             }
36         }
37         else
38         {
39             $find = Station::model()->find('domain=:dm', array(':dm'=>$_SERVER['HTTP_HOST']) );
40             if(!empty($find) )
41             {
42                 $s = $find->aliases;
43             }
44         }
#9
+
 /data/wwwroot/wwwhzqingcang/application/functions/reception.php(8): s()
03 /*
04  * 获取当前站点模版路径
05  */
06 function tpl($file)
07 {
08     return '../../../views/'.getTmplByAli(s()).'/'.$file;
09 }
10 
11 /*
12  * 获取当前站点模版路径
13  */
2020-06-03 19:48:07 nginx/1.16.1 Yii Framework/1.1.13