TDbConnection failed to establish DB connection: SQLSTATE[08006] [7] FATAL: database "websitemk" does not exist
/apps/www/webmk/protected/controllers/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;
#0 /apps/www/webmk/protected/controllers/TDbConnection.php(143): TDbConnection->open()
#1 /apps/www/webmk/framework/TComponent.php(135): TDbConnection->setActive(true)
#2 /apps/www/webmk/protected/controllers/ModulPengumuman.php(86): TComponent->__set('Active', true)
#3 /apps/www/webmk/protected/pages/web/Beranda.php(7): ModulPengumuman->getStatusBanner()
#4 /apps/www/webmk/framework/pradolite.php(4210): Beranda->onLoad(NULL)
#5 /apps/www/webmk/framework/pradolite.php(6223): TControl->loadRecursive()
#6 /apps/www/webmk/framework/pradolite.php(6215): TPage->processNormalRequest(Object(THtmlWriter))
#7 /apps/www/webmk/framework/pradolite.php(8340): TPage->run(Object(THtmlWriter))
#8 /apps/www/webmk/framework/pradolite.php(8306): TPageService->runPage(Object(Beranda), Array)
#9 /apps/www/webmk/framework/pradolite.php(9297): TPageService->run()
#10 /apps/www/webmk/framework/pradolite.php(8899): TApplication->runService()
#11 /apps/www/webmk/index.php(25): TApplication->run()
#12 {main}