Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Jul 22, 2025

Summary

caching_sha2_password was added in 8.0.4 as the default authentication plugin. mysql_native_password is deprecated since then. In MySQL 8.4 it was disabled by default so a user need to manually reenable it to make it work.
In MySQL 9.0 it is removed and causes the following error:

SQLSTATE[HY000] [1524] Plugin 'mysql_native_password' is not loaded

Checklist

@susnux susnux added this to the Nextcloud 32 milestone Jul 22, 2025
@susnux susnux requested a review from nickvergessen July 22, 2025 12:55
@susnux susnux requested a review from a team as a code owner July 22, 2025 12:55
@susnux susnux added bug 3. to review Waiting for reviews labels Jul 22, 2025
@susnux susnux requested review from artonge, provokateurin and sorbaugh and removed request for a team July 22, 2025 12:55
@susnux susnux added the feature: database Database related DB label Jul 22, 2025
@susnux susnux requested review from come-nc and salmart-dev and removed request for artonge July 22, 2025 12:56
@provokateurin

This comment was marked as resolved.

@susnux

This comment was marked as resolved.

@susnux susnux force-pushed the fix/mysql-removed-auth branch from a6e2826 to 8db2ae8 Compare July 22, 2025 13:35
@susnux
Copy link
Contributor Author

susnux commented Jul 22, 2025

@provokateurin fixed, lets only do so for 8.4 and for 8.0 we just keep current behavior.
We can drop this as soon as 8.0 is EOL (probably with Nextcloud 33).

@nickvergessen
Copy link
Member

Access denied for user 'oc_oc_admin'@'172.18.0.1' (using password: YES)

Sharding is breaking

@susnux susnux force-pushed the fix/mysql-removed-auth branch from ec428d9 to 4fe1c62 Compare July 22, 2025 20:22
@susnux

This comment was marked as resolved.

@susnux susnux force-pushed the fix/mysql-removed-auth branch 2 times, most recently from 825f020 to 1c12c00 Compare July 22, 2025 21:02
@susnux

This comment was marked as resolved.

`caching_sha2_password` was added in 8.0.4 as the default
authentication plugin. `mysql_native_password` is deprecated since then.
In MySQL 8.4 it was disabled by default so a user need to manually
reenable it to make it work.
In MySQL 9.0 it is removed and causes the following error:

> SQLSTATE[HY000] [1524] Plugin 'mysql_native_password' is not loaded

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the fix/mysql-removed-auth branch from 1c12c00 to b814f3b Compare August 5, 2025 18:40
@susnux susnux requested a review from nickvergessen August 5, 2025 18:41
@susnux susnux merged commit 1fdda4b into master Aug 6, 2025
245 of 255 checks passed
@susnux susnux deleted the fix/mysql-removed-auth branch August 6, 2025 09:26
@skjnldsv skjnldsv mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: database Database related DB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants