diff --git a/src/Db/PdoFactory.php b/src/Db/PdoFactory.php index 83b006f..f4d73c4 100644 --- a/src/Db/PdoFactory.php +++ b/src/Db/PdoFactory.php @@ -44,7 +44,7 @@ private function connect(array $config): PDO $code = (int) $exception->getCode(); throw match ($code) { - 1045 => new InvalidCredentialsException('Invalid database credentials (user, password)', $code), + 1045, 2054 => new InvalidCredentialsException('Invalid database credentials (user, password)', $code), 1049 => new InvalidDatabaseException('Unknown database', $code), default => new CommonException($exception->getMessage(), $code) };