CDbException

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

/home4/siilhalal/public_html/extranet/yii/db/CDbConnection.php(381)

369                 throw new CDbException('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 CDbException('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.CDbException');
387                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
388                 }
389             }
390         }
391     }
392 
393     /**

Stack Trace

#8
+
 /home4/siilhalal/public_html/br/noticias_page.php(12): CActiveDataProvider->__construct("Noticia", array("criteria" => CDbCriteria, "pagination" => array("route" => "noticias?", "pageSize" => 10, "pageVar" => "page")))
07 $_GET['pagina'] = is_numeric( $_GET['pagina']) ? $_GET['pagina'] + 1 : 0;
08 $criteria = new CDbCriteria();
09 $criteria->order = 'idnoticia desc';
10 $criteria->addCondition( "ativo = 1" );
11 $data_provider = new CActiveDataProvider( 'Noticia', array(
12   'criteria' => $criteria,
13   'pagination' => array(
14     'route' => 'noticias?',
15     'pageSize' => 10,
16     'pageVar' => 'page',
17   ),
#9
+
 /home4/siilhalal/public_html/br/RequestManager.php(159): require_once("/home4/siilhalal/public_html/br/noticias_page.php")
154             Utf8::encode($html);
155             echo $html;
156             exit;
157         }
158 
159         require_once($require_file);
160         exit;
161     }
162 }
163 ?>
#10
+
 /home4/siilhalal/public_html/br/index.php(39): RequestManager->run(array("/empresa" => "empresa.php", "/imparcialidade" => "imparcialidade.php", "/certificadas" => "empresas-certificadas.php", "/certificacao" => "certificacao.php", ...))
34     '/inicial/(?P<acesso>\w+)'=>'inicial.php',
35     '/index'=>'inicial.php',
36     '/inicial'=>'inicial.php',
37     );
38 $request_manager = new RequestManager();
39 $request_manager->run($rotas);
40 exit;
2025-08-20 17:31:33 Apache Yii Framework/1.1.13