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/Premios.php(32): CActiveRecord::model("Premios")
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/franquia/pt_br/premios/premios.php(5): Premios::model()
01 <?php
02 $this->pageTitle='Franquia - Prêmios - '.Yii::app()->name;
03 $baseURL = Yii::app()->request->baseUrl;
04 $this->pageClass="franquia premios";
05 $premios = Premios::model()->findAll();
06 
07 $ttCol1 = round(count($premios)/2);
08 
09 ?>
10 
#13
+
 /home/brdepylaction/public_html/site/protected/controllers/FranquiaController.php(45): CController->render("pt_br//premios/premios")
40                 throw new CHttpException(404,'A página que você esta tentando acessar não existe.');
41             }
42 
43             $this->pageClass = $slug1;
44 
45             $this->render($viewFileName);
46             return;
47         }
48 
49 
50         if ($slug1 != "" && $slug2 != "") {
2018-07-21 23:33:54 Apache Yii Framework/1.1.13