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/depylmen/perguntas-frequentes.php(28): CBaseController->widget("application.components.widgets.FaqList", array("ns" => 3, "model" => FaqForm))
23 
24 <?php
25 $this->widget('application.components.widgets.FaqList',array(
26     'ns' => Faq::_DEPYLMEN,
27     'model' => $model
28 ));
29 ?>
30 
31 
32 <link type="text/css" rel="stylesheet" media="screen" href="<?php echo $baseURL; ?>/css/internas.css">
33 <link type="text/css" rel="stylesheet" media="screen" href="<?php echo $baseURL; ?>/css/pag-depylmen.css">
2018-10-15 11:50:25 Apache Yii Framework/1.1.13