TDbConnection failed to establish DB connection: SQLSTATE[42000] [1049] Unknown database 'study-21-conf'
/home/study-21-conf/ftp/www/framework/Data/TDbConnection.php (192)
0181: $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0182: $this->getPassword(),$this->_attributes);
0183: // This attribute is only useful for PDO::MySql driver.
0184: // Ignore the warning if a driver doesn't understand this.
0185: @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0186: $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0187: $this->_active=true;
0188: $this->setConnectionCharset();
0189: }
0190: catch(PDOException $e)
0191: {
0192: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0193: }
0194: }
0195: }
0196:
0197: /**
0198: * Closes the currently active DB connection.
0199: * It does nothing if the connection is already closed.
0200: */
0201: protected function close()
0202: {
0203: $this->_pdo=null;
0204: $this->_active=false;
#0 /home/study-21-conf/ftp/www/framework/Data/TDbConnection.php(165): TDbConnection->open()
#1 /home/study-21-conf/ftp/www/framework/Data/SqlMap/Statements/TPreparedCommand.php(31): TDbConnection->setActive(true)
#2 /home/study-21-conf/ftp/www/framework/Data/SqlMap/Statements/TMappedStatement.php(206): TPreparedCommand->create(Object(TSqlMapManager), Object(TDbConnection), Object(TSqlMapSelect), NULL, NULL, NULL)
#3 /home/study-21-conf/ftp/www/framework/Data/SqlMap/TSqlMapGateway.php(94): TMappedStatement->executeQueryForList(Object(TDbConnection), NULL, NULL, NULL, NULL)
#4 /home/study-21-conf/ftp/www/protected/Library/Data/Dao/ThemeDao.php(26): TSqlMapGateway->queryForList('Theme-SelectAll', NULL, NULL, NULL, NULL)
#5 /home/study-21-conf/ftp/www/protected/Library/Controller/SubmissionFacade.php(277): ThemeDao->getAll(NULL, NULL)
#6 /home/study-21-conf/ftp/www/protected/Pages/Submit.php(16): SubmissionFacade->getAllThemes()
#7 /home/study-21-conf/ftp/www/framework/Web/UI/TControl.php(1270): Submit->onInit(NULL)
#8 /home/study-21-conf/ftp/www/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#9 /home/study-21-conf/ftp/www/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#10 /home/study-21-conf/ftp/www/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#11 /home/study-21-conf/ftp/www/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#12 /home/study-21-conf/ftp/www/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#13 /home/study-21-conf/ftp/www/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(Submit), Array)
#14 /home/study-21-conf/ftp/www/framework/TApplication.php(1095): TPageService->run()
#15 /home/study-21-conf/ftp/www/framework/TApplication.php(382): TApplication->runService()
#16 /home/study-21-conf/ftp/www/index.php(6): TApplication->run()
#17 {main}