Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not store generated mysql password if it was not used
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot-nextcloud[bot] committed Jan 27, 2023
commit f23532b095bb2aae2f9627de2b9475560d1c4bef
3 changes: 3 additions & 0 deletions lib/private/Setup/MySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ private function createSpecificUser($username, $connection) {
$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.', [
Expand Down