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/TipoServico.php(26): CActiveRecord::model("TipoServico")
21      * @param string $className active record class name.
22      * @return TipoServico the static model class
23      */
24     public static function model($className=__CLASS__)
25     {
26         return parent::model($className);
27     }
28 
29     /**
30      * @return string the associated database table name
31      */
#8
+
 /home/brdepylaction/public_html/site/protected/views/layouts/main.php(163): TipoServico::model()
158                                     <ul class="menuFlutuante menuFlutuanteDepilacao">
159                                         <?php
160                                             $criteria = new CDbCriteria();
161                                             $criteria->compare("tsrv_depilacao", 1);
162                                             $criteria->compare("tsrv_status", 1);
163                                             $tipos_servicos = TipoServico::model()->findAll($criteria);
164 
165                                             foreach ($tipos_servicos as $t) {
166                                         ?>
167 
168                                         <?php if ($t->tsrv_nome == "Cera Morna") { ?>
#12
+
 /home/brdepylaction/public_html/site/protected/controllers/SejaMaisDepylController.php(54): CController->render("pt_br/fidelize/como-funciona")
49                 throw new CHttpException(404, 'A página que você esta tentando acessar não existe.');
50             }
51 
52             $this->pageClass = $slug2;
53 
54             $this->render($viewFileName);
55             return;
56         }
57 
58 
59     }
2018-09-19 04:52:21 Apache Yii Framework/1.1.13