Skip to content

fix: ensure MySQL Users task works for MySQL 8.4 #565

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Diegiwg
Copy link

@Diegiwg Diegiwg commented Feb 20, 2025

This PR updates the Ensure MySQL users are present task in tasks/users.yml to handle changes introduced in MySQL 8.4, where the mysql_native_password plugin is no longer enabled by default. The update ensures compatibility by using caching_sha2_password for MySQL 8.0 and later.

Changes:

  • Added a step to determine the MySQL version before managing users.
  • Applied conditional logic to configure MySQL users differently for MySQL 5.7 and MySQL 8.0+.
  • Updated the authentication plugin to caching_sha2_password for MySQL 8.0+, preventing Plugin 'mysql_native_password' is not loaded errors.
  • Preserved the existing configuration for MySQL 5.7 to maintain backward compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant