TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[HY000] [2054] Connecting to 3.22, 3.23 & 4.0 servers is not supported

Source File

/home/sites/heteml/users/a/g/t/agt2008/prado/Data/TDbConnection.php (166)

0155:         if($this->_pdo===null)
0156:         {
0157:             try
0158:             {
0159:                 $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0160:                                     $this->getPassword(),$this->_attributes);
0161:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0162:                 $this->_active=true;
0163:             }
0164:             catch(PDOException $e)
0165:             {
0166: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0167: } 0168: } 0169: } 0170: 0171: /** 0172: * Closes the currently active DB connection. 0173: * It does nothing if the connection is already closed. 0174: */ 0175: protected function close() 0176: { 0177: $this->_pdo=null; 0178: $this->_active=false;

Stack Trace

#0 /home/sites/heteml/users/a/g/t/agt2008/prado/Data/TDbConnection.php(143): TDbConnection->open()
#1 /home/sites/heteml/users/a/g/t/agt2008/prado/Data/SqlMap/Statements/TPreparedCommand.php(29): TDbConnection->setActive(true)
#2 /home/sites/heteml/users/a/g/t/agt2008/prado/Data/SqlMap/Statements/TMappedStatement.php(206): TPreparedCommand->create(Object(TSqlMapManager), Object(TDbConnection), Object(TSqlMapSelect), NULL, 0, 10)
#3 /home/sites/heteml/users/a/g/t/agt2008/prado/Data/SqlMap/TSqlMapGateway.php(94): TMappedStatement->executeQueryForList(Object(TDbConnection), NULL, NULL, 0, 10)
#4 /home/sites/heteml/users/a/g/t/agt2008/web/site/protected/business/RNews.php(38): TSqlMapGateway->queryForList('getNewsAll', NULL, NULL, 0, 10)
#5 /home/sites/heteml/users/a/g/t/agt2008/web/site/protected/pages/Home.php(16): RNews->getNewsAll(0, 10)
#6 /home/sites/heteml/users/a/g/t/agt2008/prado/Web/UI/TControl.php(1286): Home->onLoad(NULL)
#7 /home/sites/heteml/users/a/g/t/agt2008/prado/Web/UI/TPage.php(210): TControl->loadRecursive()
#8 /home/sites/heteml/users/a/g/t/agt2008/prado/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#9 /home/sites/heteml/users/a/g/t/agt2008/prado/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#10 /home/sites/heteml/users/a/g/t/agt2008/prado/Web/Services/TPageService.php(420): TPageService->runPage(Object(Home), Array)
#11 /home/sites/heteml/users/a/g/t/agt2008/prado/TApplication.php(1066): TPageService->run()
#12 /home/sites/heteml/users/a/g/t/agt2008/prado/TApplication.php(376): TApplication->runService()
#13 /home/sites/heteml/users/a/g/t/agt2008/web/site/index.php(6): TApplication->run()
#14 {main}
2017-02-26 10:01 Apache PRADO/3.1.1