TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[HY000] [2005] Unknown MySQL server host 'chena.eecs.oregonstate.edu' (4)

Source File

/nfs/raven/u1/p/paulselo/public_html/prado/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 /nfs/raven/u1/p/paulselo/public_html/prado/framework/Data/TDbConnection.php(143): TDbConnection->open()
#1 /nfs/raven/u1/p/paulselo/public_html/prado/framework/TComponent.php(135): TDbConnection->setActive(true)
#2 /nfs/raven/u1/p/paulselo/public_html/cs275/protected/pages/Home.php(10): TComponent->__set('Active', true)
#3 /nfs/raven/u1/p/paulselo/public_html/prado/framework/TComponent.php(102): Home->getLatest()
#4 /nfs/raven/u1/p/paulselo/public_html/prado/framework/Web/UI/TControl.php(204): TComponent->__get('Latest')
#5 /nfs/raven/u1/p/paulselo/public_html/cs275/protected/pages/Home.php(29): TControl->__get('Latest')
#6 /nfs/raven/u1/p/paulselo/public_html/prado/framework/Web/UI/TControl.php(1275): Home->onLoad(NULL)
#7 /nfs/raven/u1/p/paulselo/public_html/prado/framework/Web/UI/TPage.php(210): TControl->loadRecursive()
#8 /nfs/raven/u1/p/paulselo/public_html/prado/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#9 /nfs/raven/u1/p/paulselo/public_html/prado/framework/Web/Services/TPageService.php(442): TPage->run(Object(THtmlWriter))
#10 /nfs/raven/u1/p/paulselo/public_html/prado/framework/Web/Services/TPageService.php(388): TPageService->runPage(Object(Home), Array)
#11 /nfs/raven/u1/p/paulselo/public_html/prado/framework/TApplication.php(1086): TPageService->run()
#12 /nfs/raven/u1/p/paulselo/public_html/prado/framework/TApplication.php(376): TApplication->runService()
#13 /nfs/raven/u1/p/paulselo/public_html/cs275/index.php(27): TApplication->run()
#14 {main}
2009-11-22 23:49 Apache/2.2.12 (Debian) PRADO/3.1.0RC