TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[HY000] [2002] No such file or directory

Source File

/home/invitati/framework/Data/TDbConnection.php (192)

0181:                 $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0182:                                     $this->getPassword(),$this->_attributes);
0183:                 // This attribute is only useful for PDO::MySql driver.
0184:                 // Ignore the warning if a driver doesn't understand this.
0185:                 @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0186:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0187:                 $this->_active=true;
0188:                 $this->setConnectionCharset();
0189:             }
0190:             catch(PDOException $e)
0191:             {
0192: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0193: } 0194: } 0195: } 0196: 0197: /** 0198: * Closes the currently active DB connection. 0199: * It does nothing if the connection is already closed. 0200: */ 0201: protected function close() 0202: { 0203: $this->_pdo=null; 0204: $this->_active=false;

Stack Trace

#0 /home/invitati/framework/Data/TDbConnection.php(165): TDbConnection->open()
#1 /home/invitati/framework/Data/SqlMap/Statements/TPreparedCommand.php(31): TDbConnection->setActive(true)
#2 /home/invitati/framework/Data/SqlMap/Statements/TMappedStatement.php(206): TPreparedCommand->create(Object(TSqlMapManager), Object(TDbConnection), Object(TSqlMapSelect), Array, -1, -1)
#3 /home/invitati/framework/Data/SqlMap/TSqlMapGateway.php(94): TMappedStatement->executeQueryForList(Object(TDbConnection), Array, NULL, -1, -1)
#4 /home/invitati/public_html/protected/pages/ProductDetail.php(18): TSqlMapGateway->queryForList('Get_Product_By_...', Array)
#5 /home/invitati/framework/Web/UI/TControl.php(1270): ProductDetail->onInit(NULL)
#6 /home/invitati/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#7 /home/invitati/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#8 /home/invitati/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#9 /home/invitati/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#10 /home/invitati/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#11 /home/invitati/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(ProductDetail), Array)
#12 /home/invitati/framework/TApplication.php(1095): TPageService->run()
#13 /home/invitati/framework/TApplication.php(382): TApplication->runService()
#14 /home/invitati/public_html/index.php(19): TApplication->run()
#15 {main}
2016-05-02 21:58 Apache PRADO/3.1.7