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/TActiveRecord.php(625): TActiveRecordGateway->getCommand(Object(page))
#6 /usr/home/flashmoda.org/web/protected/pages/Home.php(8): TActiveRecord->__call('findbypage_anch...', Array)
#7 /usr/home/flashmoda.org/web/protected/pages/Home.php(8): page->findbypage_anchor('bienvenidos')
#8 /usr/home/flashmoda.org/web/framework/Web/UI/TControl.php(1286): Home->onLoad(NULL)
#9 /usr/home/flashmoda.org/web/framework/Web/UI/TPage.php(210): TControl->loadRecursive()
#10 /usr/home/flashmoda.org/web/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#11 /usr/home/flashmoda.org/web/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#12 /usr/home/flashmoda.org/web/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Home), Array)
#13 /usr/home/flashmoda.org/web/framework/TApplication.php(1066): TPageService->run()
#14 /usr/home/flashmoda.org/web/framework/TApplication.php(376): TApplication->runService()
#15 /usr/home/flashmoda.org/web/index.php(24): TApplication->run()
#16 {main}
2017-11-19 11:05 Apache PRADO/3.1.1