CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied for user 'booleanc_maf'@'localhost' (using password: YES)

/home1/booleanc/public_html/protected/framework/db/CDbConnection.php(364)

352                 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.'));
353             try
354             {
355                 Yii::trace('Opening DB connection','system.db.CDbConnection');
356                 $this->_pdo=$this->createPdoInstance();
357                 $this->initConnection($this->_pdo);
358                 $this->_active=true;
359             }
360             catch(PDOException $e)
361             {
362                 if(YII_DEBUG)
363                 {
364                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
365                         array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo);
366                 }
367                 else
368                 {
369                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
370                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
371                 }
372             }
373         }
374     }
375 
376     /**

Stack Trace

#7
+
 /home1/booleanc/public_html/bcoregrid/protected/models/Users.php(26): CActiveRecord::model("Users")
21      * Returns the static model of the specified AR class.
22      * @return CActiveRecord 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
+
 /home1/booleanc/public_html/bcoregrid/protected/controllers/SiteController.php(72): Users::model()
67     {
68         $this->processAdminCommand();
69 
70         $criteria=new CDbCriteria;
71 
72         $pages=new CPagination(Users::model()->count($criteria));
73         $pages->pageSize=self::PAGE_SIZE;
74         $pages->applyLimit($criteria);
75 
76         $sort=new CSort('Users');
77         $sort->applyOrder($criteria);
#9
+
 /home1/booleanc/public_html/bcoregrid/protected/controllers/SiteController.php(9): SiteController->actionList()
04 {
05     const PAGE_SIZE=5;
06     private $_model;
07     public function actionIndex()
08     {
09         $this->actionList();
10     }
11     public function actionShow()
12     {
13         $this->render('show',array('model'=>$this->loadUsers()));
14     }
2024-03-28 19:11:07 Apache Yii Framework/1.1.8