CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1049] Unknown 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/Parceiros.php(32): CActiveRecord::model("Parceiros")
27      * @param string $className active record class name.
28      * @return Outdoor the static model class
29      */
30     public static function model($className=__CLASS__)
31     {
32         return parent::model($className);
33     }
34 
35     /**
36      * @return string the associated database table name
37      */
#8
+
 /home/brdepylaction/public_html/site/protected/views/sejaMaisDepyl/pt_br/parcerias/parcerias.php(7): Parceiros::model()
02     $baseURL = Yii::app()->request->baseUrl;
03     $this->pageClass="parcerias";
04     $this->pageTitle='Seja+Depyl - Parcerias - '.Yii::app()->name;
05 
06 
07     $parceiros = Parceiros::model()->findAll();
08 ?>
09 
10 
11 <ul>
12     <?php 
#13
+
 /home/brdepylaction/public_html/site/protected/controllers/SejaMaisDepylController.php(39): CController->render("pt_br//parcerias/parcerias")
34                 throw new CHttpException(404, 'A página que você esta tentando acessar não existe.');
35             }
36 
37             $this->pageClass = $slug1;
38 
39             $this->render($viewFileName);
40             return;
41         }
42 
43 
44         if ($slug1 != "" && $slug2 != "") {
2018-07-21 23:46:51 Apache Yii Framework/1.1.13