mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
parent
72dfa6d8c0
commit
1078b7de1a
@ -378,7 +378,12 @@ class DbTool
|
|||||||
} catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
if ($this->config['db'] === 'mysql') {
|
if ($this->config['db'] === 'mysql') {
|
||||||
$code = $e->getCode();
|
$code = $e->getCode();
|
||||||
if ($code !== 1040 && $code !== 1045) {
|
/*
|
||||||
|
* 1040 .. Too many connections
|
||||||
|
* 1045 .. Access denied for user '%s'@'%s' (using password: %s)
|
||||||
|
* 1698 .. Access denied for user '%s'@'%s'
|
||||||
|
*/
|
||||||
|
if ($code !== 1040 && $code !== 1045 && $code !== 1698) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
} elseif ($this->config['db'] === 'pgsql') {
|
} elseif ($this->config['db'] === 'pgsql') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user