Prado\Exceptions\TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[HY000] [2002] Connection refused

Source File

/home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Data/TDbConnection.php (201)

0190:                     $this->getUsername(),
0191:                                     $this->getPassword(),
0192:                     $this->_attributes
0193:                 );
0194:                 // This attribute is only useful for PDO::MySql driver.
0195:                 // Ignore the warning if a driver doesn't understand this.
0196:                 @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0197:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0198:                 $this->_active = true;
0199:                 $this->setConnectionCharset();
0200:             } catch (PDOException $e) {
0201: throw new TDbException('dbconnection_open_failed', $e->getMessage());
0202: } 0203: } 0204: } 0205: 0206: /** 0207: * Closes the currently active DB connection. 0208: * It does nothing if the connection is already closed. 0209: */ 0210: protected function close() 0211: { 0212: $this->_pdo = null; 0213: $this->_active = false;

Stack Trace

#0 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Data/TDbConnection.php(173): Prado\Data\TDbConnection->open()
#1 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Data/ActiveRecord/TActiveRecord.php(324): Prado\Data\TDbConnection->setActive(true)
#2 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Data/ActiveRecord/TActiveRecord.php(337): Prado\Data\ActiveRecord\TActiveRecord::getActiveDbConnection()
#3 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Data/ActiveRecord/TActiveRecordGateway.php(156): Prado\Data\ActiveRecord\TActiveRecord->getDbConnection()
#4 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Data/ActiveRecord/TActiveRecord.php(864): Prado\Data\ActiveRecord\TActiveRecordGateway->getCommand(Object(ReferencementRecord))
#5 /home/rispo.org/public_html/protected/Layouts/MainLayout.php(13): Prado\Data\ActiveRecord\TActiveRecord->__call('findby_ref_URL', Array)
#6 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1318): MainLayout->onInit(NULL)
#7 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TCompositeControl.php(35): Prado\Web\UI\TControl->initRecursive(Object(MainLayout))
#8 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TTemplateControl.php(244): Prado\Web\UI\TCompositeControl->initRecursive(Object(AgendaDetail))
#9 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1305): Prado\Web\UI\TTemplateControl->initRecursive(Object(AgendaDetail))
#10 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TCompositeControl.php(35): Prado\Web\UI\TControl->initRecursive(Object(AgendaDetail))
#11 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TTemplateControl.php(244): Prado\Web\UI\TCompositeControl->initRecursive(NULL)
#12 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(220): Prado\Web\UI\TTemplateControl->initRecursive()
#13 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(208): Prado\Web\UI\TPage->processNormalRequest(Object(Prado\Web\UI\THtmlWriter))
#14 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(528): Prado\Web\UI\TPage->run(Object(Prado\Web\UI\THtmlWriter))
#15 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(465): Prado\Web\Services\TPageService->runPage(Object(AgendaDetail), Array)
#16 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/TApplication.php(1190): Prado\Web\Services\TPageService->run()
#17 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/TApplication.php(382): Prado\TApplication->runService()
#18 /home/rispo.org/public_html/index.php(75): Prado\TApplication->run()
#19 {main}
2022-06-26 04:38 Apache PRADO/4.0.1