CDbException

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

/home/techxcite/www/htdocs/framework/yiilite.php(8761)

8749             if(empty($this->connectionString))
8750                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
8751             try
8752             {
8753                 $this->_pdo=$this->createPdoInstance();
8754                 $this->initConnection($this->_pdo);
8755                 $this->_active=true;
8756             }
8757             catch(PDOException $e)
8758             {
8759                 if(YII_DEBUG)
8760                 {
8761                     throw new CDbException('CDbConnection failed to open the DB connection: '.
8762                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
8763                 }
8764                 else
8765                 {
8766                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
8767                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
8768                 }
8769             }
8770         }
8771     }
8772     protected function close()
8773     {

Stack Trace

#7
+
 /home/techxcite/www/htdocs/protected/components/DontmissBox.php(14): CActiveRecord->findAll()
09     public function run() {
10 
11         $dontmiss = Yii::app()->cache->get('dontmiss');
12         if ($dontmiss===false)
13         {
14             $dontmissModel = DontMiss::model()->findAll();
15             $dontmiss = array();
16             foreach ($dontmissModel as $dontmiss_topic) {
17                 $dontmiss[] = Title::model()->findByPk($dontmiss_topic->link);
18             }
19             Yii::app()->cache->set('dontmiss', $dontmiss, 300);
#9
+
 /home/techxcite/www/htdocs/themes/2555/views/layouts/_columnRight.php(14): CBaseController->widget("application.components.DontmissBox", array("rightbox" => true))
09         <h2><a href="#">
10             Don't Miss
11         </a></h2>
12     </div>
13     <ul class="list">
14         <?php $this->widget('application.components.DontmissBox', array('rightbox'=>true)); ?>
15     </ul>
16 <!--    <div class="subject">-->
17 <!--        <h2><a href="/shopping">-->
18 <!--            SHOPPING<span>&nbsp;</span>-->
19 <!--        </a></h2>-->
#13
+
 /home/techxcite/www/htdocs/themes/2555/views/layouts/2contentLeft.php(7): CController->renderPartial("//layouts/_columnRight", "", true)
02     <div class="clearfix columnLine" id="content">
03         <div id="col_main">
04             <?php echo $content; ?>
05         </div><!-- #col_main -->
06 
07         <?php echo $this->renderPartial('//layouts/_columnRight','',true); ?>
08 
09     </div>
10 <?php $this->endContent(); ?>
2024-03-28 18:59:07 nginx/1.14.0 Yii Framework/1.1.22