Prado\Exceptions\TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[HY000] [1203] User rove2012_saber already has more than 'max_user_connections' active connections

Source File

${PradoFramework}/Data/TDbConnection.php (202)

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

Stack Trace

#0 ${PradoFramework}/Data/TDbConnection.php(171): Prado\Data\TDbConnection->open()
#1 ${PradoFramework}/Caching/TDbCache.php(336): Prado\Data\TDbConnection->setActive(true)
#2 ${PradoFramework}/Caching/TDbCache.php(187): Prado\Caching\TDbCache->getDbConnection()
#3 ${PradoFramework}/Caching/TDbCache.php(471): Prado\Caching\TDbCache->initializeCache()
#4 ${PradoFramework}/Caching/TCache.php(126): Prado\Caching\TDbCache->getValue('bb0159c3973ae88...')
#5 ${DocumentRoot}/protected/pages/product.php(204): Prado\Caching\TCache->get('loadAutoComplet...')
#6 ${DocumentRoot}/protected/pages/product.php(22): product->loadAutoComplete()
#7 ${PradoFramework}/Web/UI/TControl.php(1375): product->onLoad(NULL)
#8 ${PradoFramework}/Web/UI/TPage.php(241): Prado\Web\UI\TControl->loadRecursive()
#9 ${PradoFramework}/Web/UI/TPage.php(221): Prado\Web\UI\TPage->processNormalRequest(Object(Prado\Web\UI\THtmlWriter))
#10 ${PradoFramework}/Web/Services/TPageService.php(547): Prado\Web\UI\TPage->run(Object(Prado\Web\UI\THtmlWriter))
#11 ${PradoFramework}/Web/Services/TPageService.php(465): Prado\Web\Services\TPageService->runPage(Object(product), Array)
#12 ${PradoFramework}/TApplication.php(1245): Prado\Web\Services\TPageService->run()
#13 ${PradoFramework}/TApplication.php(386): Prado\TApplication->runService()
#14 ${DocumentRoot}/index.php(23): Prado\TApplication->run()
#15 {main}
2024-05-01 06:22 Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/7.2.17 PRADO/4.2.1