Setup Wizard: Fix missing MySQL error code 1698 handling

refs #2909
This commit is contained in:
Michael Friedrich 2017-08-07 15:14:20 +02:00
parent 72dfa6d8c0
commit 1078b7de1a
1 changed files with 6 additions and 1 deletions

View File

@ -378,7 +378,12 @@ class DbTool
} catch (PDOException $e) {
if ($this->config['db'] === 'mysql') {
$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;
}
} elseif ($this->config['db'] === 'pgsql') {