Skip to content
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

Add support for mariadb + default authentication plugin #7

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

Conversation

haltuf
Copy link

@haltuf haltuf commented Nov 22, 2019

This PR:

  • adds support for mariadb images as well
  • adds parameter authentication plugin with default value 'mysql_native_password'.
    The thing is, mysql 8.0+ changed its default authentication plugin from 'mysql_native_password' to 'caching_sha2_password' causing 'The server requested authentication method unknown to the client [caching_sha2_password]' error for many applications. Setting the default value to 'mysql_native_password' enforces the standard login/password authentication even for mysql 8.0+ versions.

I've also added the tests to cover new functionality.

@haltuf
Copy link
Author

haltuf commented Nov 22, 2019

The tests fail, while on my fork they don't https://github.com/haltuf/mysql-action/commit/1d829fdd34e83de9a72b768924ec109f83e4d78c/checks?check_suite_id=323723363

I believe the problem is, that my PR tries to reach your ${{ secrets.DatabasePassword }} to which it obviously does not have access.

@antmonnier
Copy link

This PR would be useful for us as we are looking to fallback to the default authentication plugin and could not find a way to do so.

@raymatos
Copy link

raymatos commented Aug 3, 2020

Are you planning on merging this

@preetjdp
Copy link

@haltuf Thanks for writing this PR, saved me a lot of time

daniellockyer added a commit to daniellockyer/mysql-action that referenced this pull request Jan 25, 2022
refs mirromutth#7

- I've pulled the code from the PR that allows us to change the
  authentication plugin, so we can run tests on 8.0 until the PR is merged
@gcaprio
Copy link

gcaprio commented Sep 28, 2023

Is this going to be merged at any point?

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.

6 participants