TDbConnection failed to establish DB connection: SQLSTATE[HY000] [2002] Connection refused
/home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Data/TDbConnection.php (197)
0186: $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0187: $this->getPassword(),$this->_attributes);
0188: // This attribute is only useful for PDO::MySql driver.
0189: // Ignore the warning if a driver doesn't understand this.
0190: @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0191: $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0192: $this->_active=true;
0193: $this->setConnectionCharset();
0194: }
0195: catch(PDOException $e)
0196: {
0197: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0198: }
0199: }
0200: }
0201:
0202: /**
0203: * Closes the currently active DB connection.
0204: * It does nothing if the connection is already closed.
0205: */
0206: protected function close()
0207: {
0208: $this->_pdo=null;
0209: $this->_active=false;
#0 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Data/TDbConnection.php(170): TDbConnection->open()
#1 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Data/ActiveRecord/TActiveRecord.php(316): TDbConnection->setActive(true)
#2 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Data/ActiveRecord/TActiveRecord.php(328): TActiveRecord::getActiveDbConnection()
#3 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Data/ActiveRecord/TActiveRecordGateway.php(136): TActiveRecord->getDbConnection()
#4 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Data/ActiveRecord/TActiveRecord.php(847): TActiveRecordGateway->getCommand(Object(Komentare))
#5 /home/xb040300/multi/offroadwebeu/web/protected/fragments/AddComment.php(45): TActiveRecord->__call('findAllById_off...', Array)
#6 /home/xb040300/multi/offroadwebeu/web/protected/fragments/AddComment.php(45): Komentare->findAllById_offroad('12')
#7 /home/xb040300/multi/offroadwebeu/web/protected/fragments/AddComment.php(9): AddComment->bindKoments()
#8 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TControl.php(1279): AddComment->onInit(NULL)
#9 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(TContent))
#10 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(TContent))
#11 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TControl.php(1264): TTemplateControl->initRecursive(Object(TContent))
#12 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TControl.php(1264): TControl->initRecursive(Object(TContent))
#13 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TControl.php(1264): TControl->initRecursive(Object(MainLayout))
#14 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TControl.php(1264): TControl->initRecursive(Object(MainLayout))
#15 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(technika))
#16 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(technika))
#17 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TControl.php(1264): TTemplateControl->initRecursive(Object(technika))
#18 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#19 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#20 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TPage.php(214): TTemplateControl->initRecursive()
#21 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/UI/TPage.php(203): TPage->processNormalRequest(Object(THtmlWriter))
#22 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#23 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/Web/Services/TPageService.php(470): TPageService->runPage(Object(technika), Array)
#24 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/TApplication.php(1189): TPageService->run()
#25 /home/xb040300/multi/offroadwebeu/prado_3.2.1/framework/TApplication.php(406): TApplication->runService()
#26 /home/xb040300/multi/offroadwebeu/web/index.php(24): TApplication->run()
#27 {main}