CDbException

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

/home/mirash32/public_html/KRC/framework/db/CDbConnection.php(382)

370                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371             try
372             {
373                 Yii::trace('Opening DB connection','system.db.CDbConnection');
374                 $this->_pdo=$this->createPdoInstance();
375                 $this->initConnection($this->_pdo);
376                 $this->_active=true;
377             }
378             catch(PDOException $e)
379             {
380                 if(YII_DEBUG)
381                 {
382                     throw new CDbException('CDbConnection failed to open the DB connection: '.
383                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
384                 }
385                 else
386                 {
387                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#7
+
 /home/mirash32/public_html/KRC/protected/views/front/site/video.php(5): CActiveRecord->findAll(array("condition" => "isActive="Y"", "order" => "video_date DESC"))
01 <?php
02 $baseurl = Yii::app()->request->baseurl.'/KRC';
03 $cs = Yii::app()->getClientScript();
04 
05 $arr_youtube_video=YoutubeVideo::model()->findAll(array('condition'=>'isActive="Y"','order'=>'video_date DESC'));
06 
07 ?>
08 <section class="page">
09         <div class="container">
10             <?php 
#12
+
 /home/mirash32/public_html/KRC/protected/controllers/front/SiteController.php(369): CController->render("video")
364         $arr_images =  Subbanner::getAllSubBanners();
365         $this->render('todaysevents',array('arr_images'=>$arr_images));
366     }
367     public function Actionvideo()
368     {
369      $this->render('video');
370    }
371 
372    public function ActionPastrodilheart()
373     {
374      $this->render('pastrodilheart');
#20
+
 /home/mirash32/public_html/KRC/protected/components/WebApplicationEndBehavior.php(25): CApplication->run()
20         // Attach the changeModulePaths event handler
21         // and raise it.
22         $this->onModuleCreate = array($this, 'changeModulePaths');
23         $this->onModuleCreate(new CEvent($this->owner));
24 
25         $this->owner->run(); // Run application.
26     }
27 
28     // This event should be raised when CWebApplication
29     // or CWebModule instances are being initialized.
30     public function onModuleCreate($event)
2024-03-28 18:41:35 Apache Yii Framework/1.1.14