-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix occ maintenance:install database connect failure #19303
Conversation
Provide the auth method for MySQL 8.0+ Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
More gebuging Signed-off-by: Joas Schilling <coding@schilljs.com>
e41c8ba
to
57f8290
Compare
…orrectly Signed-off-by: Joas Schilling <coding@schilljs.com>
57f8290
to
0317c5b
Compare
This comment has been minimized.
This comment has been minimized.
Failures unrelated |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Marking offtopic hides the comments only, or aborts the backport? The commits 1+4 should be backported until 16. 2+3 could be skipped, as they just make debugging easier as it makes handling of exceptions more explicit, but they don't fix a primary error. |
only hide :) |
Okay this fixes the authentication plugin situation currently, but e.g. requires maintenance when new MySQL version come up or MariaDB switches to a different default authentication method, when a password is supplied that way. An alternative that would be more future prove:
|
I checked that and it didn't work on mysql 8 and mariadb 10.4 with the same Syntax. Password needs to be hashed manually for mariadb etc. So i think that's the better story for now |
backport to stable18 in #19326 |
/backport to stable17 |
/backport to stable16 |
backport to stable17 in #19327 |
backport to stable16 in #19328 |
Strange, works perfectly fine here with MariaDB:
Also the docs state clearly that plain test password must be used here: https://mariadb.com/kb/en/alter-user/
Such a solution would solve the issue with Nextcloud 16 as well: #19328 (comment) Sadly Debian does not ship MariaDB even on Bullseye+Sid and no MySQL, hence I cannot test with these. |
Well yes it works like that, but that doesn't work with mysql8. And if you specify the plugin it requires the hash in mariadb. Anyway the PR we use now fixes it for all supported dbs... Good enough |
That must be either wrong or new in MariaDB 10.4, as with 10.3 it's not true, as of the two different syntax for plain and hashed password, see above.
Okay, no chance then. A pain that syntax differs on such basic SQL commands 😢. |
Fix #18513
Fix #15560