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/Depoimentos.php(31): CActiveRecord::model("Depoimentos")
26      * @param string $className active record class name.
27      * @return Depoimentos the static model class
28      */
29     public static function model($className=__CLASS__)
30     {
31         return parent::model($className);
32     }
33 
34     /**
35      * @return string the associated database table name
36      */
#8
+
 /home/brdepylaction/public_html/site/protected/components/widgets/DepoimentoList.php(15): Depoimentos::model()
10     public function run() {
11 
12         $criteria = new CDbCriteria;
13         $criteria->order = 'criado_em desc';
14         $criteria->condition = 'status = 1 AND ns='.$this->ns;
15         $itens = Depoimentos::model()->findAll($criteria);
16         $this->render('depoimentoList', array('itens'=>$itens));
17     }
18 }
19 ?>
20 <br clear="all">
#10
+
 /home/brdepylaction/public_html/site/protected/views/depilacao/pt_br/cera-morna/depoimentos.php(10): CBaseController->widget("application.components.widgets.DepoimentoList", array("ns" => 1))
05 ?>
06 
07 <?php
08 $this->widget('application.components.widgets.DepoimentoList',array(
09     'ns' => 1
10 ));
11 ?>
12 
13 <link type="text/css" rel="stylesheet" media="screen" href="<?php echo $baseURL; ?>/css/internas.css">
14 <link type="text/css" rel="stylesheet" media="screen" href="<?php echo $baseURL; ?>/css/pag-cera-morna.css">
2018-10-15 11:36:29 Apache Yii Framework/1.1.13