TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[42000] [1044] Access denied for user 'myflashmod'@'localhost' to database 'fmoda'

Source File

/usr/home/flashmoda.org/web/framework/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 /usr/home/flashmoda.org/web/framework/Data/TDbConnection.php(143): TDbConnection->open()
#1 /usr/home/flashmoda.org/web/framework/Data/Common/TDbMetaData.php(52): TDbConnection->setActive(true)
#2 /usr/home/flashmoda.org/web/framework/Data/ActiveRecord/TActiveRecordGateway.php(101): TDbMetaData::getInstance(Object(TDbConnection))
#3 /usr/home/flashmoda.org/web/framework/Data/ActiveRecord/TActiveRecordGateway.php(81): TActiveRecordGateway->getTableInfo(Object(TDbConnection), 'mod_page_item')
#4 /usr/home/flashmoda.org/web/framework/Data/ActiveRecord/TActiveRecordGateway.php(126): TActiveRecordGateway->getRecordTableInfo(Object(page))
#5 /usr/home/flashmoda.org/web/framework/Data/ActiveRecord/TActiveRecordGateway.php(212): TActiveRecordGateway->getCommand(Object(page))
#6 /usr/home/flashmoda.org/web/framework/Data/ActiveRecord/TActiveRecord.php(434): TActiveRecordGateway->findRecordsByCriteria(Object(page), Object(TActiveRecordCriteria))
#7 /usr/home/flashmoda.org/web/protected/pages/page/showPage.php(11): TActiveRecord->find('page_anchor = '...')
#8 /usr/home/flashmoda.org/web/framework/Web/UI/TControl.php(1270): showPage->onInit(NULL)
#9 /usr/home/flashmoda.org/web/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#10 /usr/home/flashmoda.org/web/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#11 /usr/home/flashmoda.org/web/framework/Web/UI/TPage.php(202): TTemplateControl->initRecursive()
#12 /usr/home/flashmoda.org/web/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#13 /usr/home/flashmoda.org/web/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#14 /usr/home/flashmoda.org/web/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(showPage), Array)
#15 /usr/home/flashmoda.org/web/framework/TApplication.php(1066): TPageService->run()
#16 /usr/home/flashmoda.org/web/framework/TApplication.php(376): TApplication->runService()
#17 /usr/home/flashmoda.org/web/index.php(24): TApplication->run()
#18 {main}
2017-11-18 18:48 Apache PRADO/3.1.1