CDbException

CDbConnection failed to open the DB connection: SQLSTATE[42000] [1044] Access denied for user 'logicalgamers'@'localhost' to database 'logicalgamers_mysterypic_results'

/var/www/logicalgamers/mysterypic/yii/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
+
 /var/www/logicalgamers/mysterypic/public_html/protected/extensions/giix-components/GxActiveRecord.php(26): CActiveRecord::model("Results")
21      * composite pk table. Usually a character.
22      */
23     public static $pkSeparator = '-';
24 
25     public static function model($className=__CLASS__) {
26         return parent::model($className);
27     }
28 
29     /**
30      * This method should be overridden to declare related pivot models for each MANY_MANY relationship.
31      * The pivot model is used by {@link saveWithRelated}.
#8
+
 /var/www/logicalgamers/mysterypic/public_html/protected/models/_base/BaseResults.php(21): GxActiveRecord::model("Results")
16  *
17  */
18 abstract class BaseResults extends GxActiveRecord {
19 
20     public static function model($className=__CLASS__) {
21         return parent::model($className);
22     }
23 
24     public function tableName() {
25         return 'results';
26     }
#9
+
 /var/www/logicalgamers/mysterypic/public_html/protected/models/Results.php(8): BaseResults::model("Results")
03 Yii::import('application.models._base.BaseResults');
04 
05 class Results extends BaseResults
06 {
07     public static function model($className=__CLASS__) {
08         return parent::model($className);
09     }
10     
11     public static function getResults() {
12         /*$criteria = new CDbCriteria;
13         //$criteria->condition = '`result` != ""';
2024-03-19 03:06:06 Apache/2.2.22 (Debian) Yii Framework/1.1.13