$this->options['driverOptions']
);
}
catch (\PDOException $e)
{
throw new ConnectionFailureException('Could not connect to PDO: ' . $e->getMessage(), $e->getCode(), $e);
}
$this->setOption(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
$this->dispatchEvent(new ConnectionEvent(DatabaseEvents::POST_CONNECT, $this));
* will have learned that the client end of the connection does not support utf8mb4.
*/
$this->utf8mb4 = false;
$this->options['charset'] = 'utf8';
parent::connect();
}
$serverVersion = $this->getVersion();
$this->mariadb = stripos($serverVersion, 'mariadb') !== false;
*
* @since 2.0.0
*/
public function getVersion()
{
$this->connect();
$version = $this->getOption(\PDO::ATTR_SERVER_VERSION);
if (stripos($version, 'mariadb') !== false)
{
$db = $this->getDatabase();
$this->info = [
'php' => php_uname(),
'dbserver' => $db->getServerType(),
'dbversion' => $db->getVersion(),
'dbcollation' => $db->getCollation(),
'dbconnectioncollation' => $db->getConnectionCollation(),
'dbconnectionencryption' => $db->getConnectionEncryption(),
'dbconnencryptsupported' => $db->isConnectionEncryptionSupported(),
'phpversion' => PHP_VERSION,
'joomlaVersion' => JVERSION,
'requestId' => $this->requestId,
'identity' => $this->getIdentityInfo($application->getIdentity()),
'response' => $this->getResponseInfo($application->getResponse()),
'template' => $this->getTemplateInfo($application->getTemplate(true)),
'database' => $this->getDatabaseInfo($model->getInfo()),
];
}
/**
* Get Identity info.
$request_variables
)
);
foreach ($this->collectors as $name => $collector) {
$this->data[$name] = $collector->collect();
}
// Remove all invalid (non UTF-8) characters
array_walk_recursive($this->data, function (&$item) {
if (is_string($item) && !mb_check_encoding($item, 'UTF-8')) {
* @return array
*/
public function getData()
{
if ($this->data === null) {
$this->collect();
}
return $this->data;
}
/**
$js .= $this->getAddDatasetCode($id, $data, '(stacked)');
}
}
$suffix = !$initialize ? '(ajax)' : null;
$js .= $this->getAddDatasetCode($this->debugBar->getCurrentRequestId(), $this->debugBar->getData(), $suffix);
$nonce = '';
if ($doc->cspNonce) {
$nonce = ' nonce="' . $doc->cspNonce . '"';
echo $contents;
return;
}
echo str_replace('</body>', $debugBarRenderer->renderHead() . $debugBarRenderer->render() . '</body>', $contents);
}
/**
* AJAX handler
*
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
// Send the application response.
$this->respond();
// Trigger the onAfterRespond event.
$this->getDispatcher()->dispatch('onAfterRespond');
}
/**
* Check if the user is required to reset their password.
*
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
{
$this->connection = new \PDO(
$connectionString,
$this->options['user'],
$this->options['password'],
$this->options['driverOptions']
);
}
catch (\PDOException $e)
{
throw new ConnectionFailureException('Could not connect to PDO: ' . $e->getMessage(), $e->getCode(), $e);
{
$this->connection = new \PDO(
$connectionString,
$this->options['user'],
$this->options['password'],
$this->options['driverOptions']
);
}
catch (\PDOException $e)
{
throw new ConnectionFailureException('Could not connect to PDO: ' . $e->getMessage(), $e->getCode(), $e);
* will have learned that the client end of the connection does not support utf8mb4.
*/
$this->utf8mb4 = false;
$this->options['charset'] = 'utf8';
parent::connect();
}
$serverVersion = $this->getVersion();
$this->mariadb = stripos($serverVersion, 'mariadb') !== false;
*
* @since 2.0.0
*/
public function getVersion()
{
$this->connect();
$version = $this->getOption(\PDO::ATTR_SERVER_VERSION);
if (stripos($version, 'mariadb') !== false)
{
$db = $this->getDatabase();
$this->info = [
'php' => php_uname(),
'dbserver' => $db->getServerType(),
'dbversion' => $db->getVersion(),
'dbcollation' => $db->getCollation(),
'dbconnectioncollation' => $db->getConnectionCollation(),
'dbconnectionencryption' => $db->getConnectionEncryption(),
'dbconnencryptsupported' => $db->isConnectionEncryptionSupported(),
'phpversion' => PHP_VERSION,
'joomlaVersion' => JVERSION,
'requestId' => $this->requestId,
'identity' => $this->getIdentityInfo($application->getIdentity()),
'response' => $this->getResponseInfo($application->getResponse()),
'template' => $this->getTemplateInfo($application->getTemplate(true)),
'database' => $this->getDatabaseInfo($model->getInfo()),
];
}
/**
* Get Identity info.
$request_variables
)
);
foreach ($this->collectors as $name => $collector) {
$this->data[$name] = $collector->collect();
}
// Remove all invalid (non UTF-8) characters
array_walk_recursive($this->data, function (&$item) {
if (is_string($item) && !mb_check_encoding($item, 'UTF-8')) {
* @return array
*/
public function getData()
{
if ($this->data === null) {
$this->collect();
}
return $this->data;
}
/**
$js .= $this->getAddDatasetCode($id, $data, '(stacked)');
}
}
$suffix = !$initialize ? '(ajax)' : null;
$js .= $this->getAddDatasetCode($this->debugBar->getCurrentRequestId(), $this->debugBar->getData(), $suffix);
$nonce = '';
if ($doc->cspNonce) {
$nonce = ' nonce="' . $doc->cspNonce . '"';
echo $contents;
return;
}
echo str_replace('</body>', $debugBarRenderer->renderHead() . $debugBarRenderer->render() . '</body>', $contents);
}
/**
* AJAX handler
*
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
// Send the application response.
$this->respond();
// Trigger the onAfterRespond event.
$this->getDispatcher()->dispatch('onAfterRespond');
}
/**
* Check if the user is required to reset their password.
*
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
[2/2]
ConnectionFailureException
|
---|
Joomla\Database\Exception\ConnectionFailureException: Could not connect to PDO: SQLSTATE[42000] [1226] User 'user7082_volkctdm' has exceeded the 'max_user_connections' resource (current value: 15) at /var/www/user7082/data/www/volkctdm.by/libraries/vendor/joomla/database/src/Pdo/PdoDriver.php:364 at Joomla\Database\Pdo\PdoDriver->connect() (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php:197) at Joomla\Database\Mysql\MysqlDriver->connect() (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php:517) at Joomla\Database\Mysql\MysqlDriver->getVersion() (/var/www/user7082/data/www/volkctdm.by/administrator/components/com_admin/src/Model/SysinfoModel.php:315) at Joomla\Component\Admin\Administrator\Model\SysinfoModel->getInfo() (/var/www/user7082/data/www/volkctdm.by/plugins/system/debug/src/DataCollector/InfoCollector.php:136) at Joomla\Plugin\System\Debug\DataCollector\InfoCollector->collect() (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:238) at DebugBar\DebugBar->collect() (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:265) at DebugBar\DebugBar->getData() (/var/www/user7082/data/www/volkctdm.by/plugins/system/debug/src/JavascriptRenderer.php:119) at Joomla\Plugin\System\Debug\JavascriptRenderer->render() (/var/www/user7082/data/www/volkctdm.by/plugins/system/debug/src/Extension/Debug.php:368) at Joomla\Plugin\System\Debug\Extension\Debug->onAfterRespond(object(Event)) (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onAfterRespond') (/var/www/user7082/data/www/volkctdm.by/libraries/src/Application/CMSApplication.php:332) at Joomla\CMS\Application\CMSApplication->execute() (/var/www/user7082/data/www/volkctdm.by/includes/app.php:61) at require_once('/var/www/user7082/data/www/volkctdm.by/includes/app.php') (/var/www/user7082/data/www/volkctdm.by/index.php:32) |
[1/2]
PDOException
|
---|
PDOException: SQLSTATE[42000] [1226] User 'user7082_volkctdm' has exceeded the 'max_user_connections' resource (current value: 15) at /var/www/user7082/data/www/volkctdm.by/libraries/vendor/joomla/database/src/Pdo/PdoDriver.php:359 at PDO->__construct('mysql:host=localhost;port=3306;dbname=user7082_volkctdm;charset=utf8', 'user7082_volkctdm', 'volkctdm888888', array()) (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/joomla/database/src/Pdo/PdoDriver.php:359) at Joomla\Database\Pdo\PdoDriver->connect() (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php:197) at Joomla\Database\Mysql\MysqlDriver->connect() (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php:517) at Joomla\Database\Mysql\MysqlDriver->getVersion() (/var/www/user7082/data/www/volkctdm.by/administrator/components/com_admin/src/Model/SysinfoModel.php:315) at Joomla\Component\Admin\Administrator\Model\SysinfoModel->getInfo() (/var/www/user7082/data/www/volkctdm.by/plugins/system/debug/src/DataCollector/InfoCollector.php:136) at Joomla\Plugin\System\Debug\DataCollector\InfoCollector->collect() (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:238) at DebugBar\DebugBar->collect() (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/maximebf/debugbar/src/DebugBar/DebugBar.php:265) at DebugBar\DebugBar->getData() (/var/www/user7082/data/www/volkctdm.by/plugins/system/debug/src/JavascriptRenderer.php:119) at Joomla\Plugin\System\Debug\JavascriptRenderer->render() (/var/www/user7082/data/www/volkctdm.by/plugins/system/debug/src/Extension/Debug.php:368) at Joomla\Plugin\System\Debug\Extension\Debug->onAfterRespond(object(Event)) (/var/www/user7082/data/www/volkctdm.by/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch('onAfterRespond') (/var/www/user7082/data/www/volkctdm.by/libraries/src/Application/CMSApplication.php:332) at Joomla\CMS\Application\CMSApplication->execute() (/var/www/user7082/data/www/volkctdm.by/includes/app.php:61) at require_once('/var/www/user7082/data/www/volkctdm.by/includes/app.php') (/var/www/user7082/data/www/volkctdm.by/index.php:32) |