diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php index e3004c269bc35..caa73edccec3d 100644 --- a/lib/private/Setup/MySQL.php +++ b/lib/private/Setup/MySQL.php @@ -183,6 +183,9 @@ private function createSpecificUser($username, $connection): void { $i++; } } + } else { + // Reuse existing password if a database config is already present + $this->dbPassword = $rootPassword; } } catch (\Exception $ex) { $this->logger->info('Can not create a new MySQL user, will continue with the provided user.', [