Recover installation when creating the database user fails and improve password strength #33513
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I reinstalled my setup and ended up with this error on MySQL:
The problem is the exception was logged and swallowed, so the remaining part of the installation process tried to grant privileges to that user and wrote it to the config files resulting afterwards in:
As per https://ostechnix.com/fix-mysql-error-1819-hy000-your-password-does-not-satisfy-the-current-policy-requirements/ there are 3 levels of password strength and the new default is medium:
So in a second commit instead of reusing the provided root account, I increased the random password strength that hopefully also matches the STRONG rules