CDbException

CDbConnection nie zdołał otworzyć połączenia DB: SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file

/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-19 08:51:25 Apache/2 Yii Framework/1.1.8