TDbException

Description

TDbConnection failed to establish DB connection: 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

Source File

/home/autostyle/ftp/be-beauty/framework/Data/TDbConnection.php (180)

0169:                 $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0170:                                     $this->getPassword(),$this->_attributes);
0171:                 // This attribute is only useful for PDO::MySql driver. 
0172:                 // Ignore the warning if a driver doesn't understand this.
0173:                 @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0174:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0175:                 $this->_active=true;
0176:                 $this->setConnectionCharset();
0177:             }
0178:             catch(PDOException $e)
0179:             {
0180: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0181: } 0182: } 0183: } 0184: 0185: /** 0186: * Closes the currently active DB connection. 0187: * It does nothing if the connection is already closed. 0188: */ 0189: protected function close() 0190: { 0191: $this->_pdo=null; 0192: $this->_active=false;

Stack Trace

#0 /home/autostyle/ftp/be-beauty/framework/Data/TDbConnection.php(153): TDbConnection->open()
#1 /home/autostyle/ftp/be-beauty/framework/Data/ActiveRecord/TActiveRecord.php(317): TDbConnection->setActive(true)
#2 /home/autostyle/ftp/be-beauty/framework/Data/ActiveRecord/TActiveRecord.php(329): TActiveRecord::getActiveDbConnection()
#3 /home/autostyle/ftp/be-beauty/framework/Data/ActiveRecord/TActiveRecordGateway.php(136): TActiveRecord->getDbConnection()
#4 /home/autostyle/ftp/be-beauty/framework/Data/ActiveRecord/TActiveRecordGateway.php(224): TActiveRecordGateway->getCommand(Object(PageRecord))
#5 /home/autostyle/ftp/be-beauty/framework/Data/ActiveRecord/TActiveRecord.php(600): TActiveRecordGateway->findRecordsByCriteria(Object(PageRecord), NULL, true)
#6 /home/autostyle/ftp/be-beauty/protected/layouts/MainLayout.php(37): TActiveRecord->findAll()
#7 /home/autostyle/ftp/be-beauty/framework/Web/UI/TControl.php(1270): MainLayout->onInit(NULL)
#8 /home/autostyle/ftp/be-beauty/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Main))
#9 /home/autostyle/ftp/be-beauty/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Main))
#10 /home/autostyle/ftp/be-beauty/framework/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(Main))
#11 /home/autostyle/ftp/be-beauty/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#12 /home/autostyle/ftp/be-beauty/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#13 /home/autostyle/ftp/be-beauty/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#14 /home/autostyle/ftp/be-beauty/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#15 /home/autostyle/ftp/be-beauty/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#16 /home/autostyle/ftp/be-beauty/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Main), Array)
#17 /home/autostyle/ftp/be-beauty/framework/TApplication.php(1095): TPageService->run()
#18 /home/autostyle/ftp/be-beauty/framework/TApplication.php(382): TApplication->runService()
#19 /home/autostyle/ftp/be-beauty/index.php(31): TApplication->run()
#20 {main}
2016-07-26 21:50 Apache/2 PRADO/3.1.6