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_link_item')
#4 /usr/home/flashmoda.org/web/framework/Data/ActiveRecord/TActiveRecordGateway.php(126): TActiveRecordGateway->getRecordTableInfo(Object(link))
#5 /usr/home/flashmoda.org/web/framework/Data/ActiveRecord/TActiveRecordGateway.php(251): TActiveRecordGateway->getCommand(Object(link))
#6 /usr/home/flashmoda.org/web/framework/Data/ActiveRecord/TActiveRecord.php(560): TActiveRecordGateway->countRecords(Object(link), Object(TActiveRecordCriteria))
#7 /usr/home/flashmoda.org/web/protected/pages/link/linkIndex.php(50): TActiveRecord->count(Object(TActiveRecordCriteria))
#8 /usr/home/flashmoda.org/web/framework/TComponent.php(102): linkIndex->getDataItemCount()
#9 /usr/home/flashmoda.org/web/framework/Web/UI/TControl.php(204): TComponent->__get('DataItemCount')
#10 /usr/home/flashmoda.org/web/protected/pages/link/linkIndex.php(28): TControl->__get('DataItemCount')
#11 /usr/home/flashmoda.org/web/framework/Web/UI/TControl.php(1286): linkIndex->onLoad(NULL)
#12 /usr/home/flashmoda.org/web/framework/Web/UI/TPage.php(210): TControl->loadRecursive()
#13 /usr/home/flashmoda.org/web/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#14 /usr/home/flashmoda.org/web/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#15 /usr/home/flashmoda.org/web/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(linkIndex), Array)
#16 /usr/home/flashmoda.org/web/framework/TApplication.php(1066): TPageService->run()
#17 /usr/home/flashmoda.org/web/framework/TApplication.php(376): TApplication->runService()
#18 /usr/home/flashmoda.org/web/index.php(24): TApplication->run()
#19 {main}
2017-11-18 18:53 Apache PRADO/3.1.1