CDbException

CDbConnection nie zdołał otworzyć połączenia DB: SQLSTATE[HY000] [1045] Access denied for user 'radkow_1'@'10.199.209.6' (using password: YES)

/home/radkow/ftp/framework18/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
+
 /home/radkow/ftp/protected/extensions/giix-components/GxActiveRecord.php(27): CActiveRecord::model("Settings")
22      * composite pk table. Usually a character.
23      */
24     public static $pkSeparator = '-';
25 
26     public static function model($className=__CLASS__) {
27         return parent::model($className);
28     }
29 
30     /**
31      * This method should be overridden to declare related pivot models for each MANY_MANY relationship.
32      * The pivot model is used by {@link saveWithRelated}.
#8
+
 /home/radkow/ftp/protected/models/_base/BaseSettings.php(24): GxActiveRecord::model("Settings")
19  *
20  */
21 abstract class BaseSettings extends GxActiveRecord {
22 
23     public static function model($className=__CLASS__) {
24         return parent::model($className);
25     }
26 
27     public function tableName() {
28         return 'settings';
29     }
#9
+
 /home/radkow/ftp/protected/models/Settings.php(8): BaseSettings::model("Settings")
03 Yii::import('application.models._base.BaseSettings');
04 
05 class Settings extends BaseSettings
06 {
07     public static function model($className=__CLASS__) {
08         return parent::model($className);
09     }
10 }
2024-03-29 00:49:42 Apache/2 Yii Framework/1.1.8