CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1044] Access denied for user 'brdepylaction_yii'@'localhost' to database 'brdepyla_blog'

/home/brdepylaction/yii-1.1.13.e9e4a0/framework/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

#7
+
 /home/brdepylaction/public_html/site/protected/models/Faq.php(45): CActiveRecord::model("Faq")
40      * @param string $className active record class name.
41      * @return Faq the static model class
42      */
43     public static function model($className=__CLASS__)
44     {
45         return parent::model($className);
46     }
47 
48     /**
49      * @return string the associated database table name
50      */
#8
+
 /home/brdepylaction/public_html/site/protected/components/widgets/FaqList.php(16): Faq::model()
11     public function run() {
12 
13         $criteria = new CDbCriteria;
14         $criteria->order = 'pergunta asc';
15         $criteria->condition = 'status = 1 AND ns='.$this->ns;
16         $itens = Faq::model()->findAll($criteria);
17         
18         $this->render('faqList', array(
19             'itens'=>$itens,
20             'model'=>$this->model
21         ));
#10
+
 /home/brdepylaction/public_html/site/protected/views/depilacao/pt_br/fotodepilacao/perguntas-frequentes.php(30): CBaseController->widget("application.components.widgets.FaqList", array("ns" => 2, "model" => FaqForm))
25 
26 <?php
27 $this->widget('application.components.widgets.FaqList',array(
28     'ns' => Faq::_FOTODEPILACAO,
29     'model' => $model
30 ));
31 ?>
32 
33 
34 <link type="text/css" rel="stylesheet" media="screen" href="<?php echo $baseURL; ?>/css/internas.css">
35 <link type="text/css" rel="stylesheet" media="screen" href="<?php echo $baseURL; ?>/css/pag-fotodepilacao.css">
2018-10-15 12:50:20 Apache Yii Framework/1.1.13