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

Improve support for mysql 8 #4

Open
bsutton opened this issue Dec 11, 2021 · 3 comments
Open

Improve support for mysql 8 #4

bsutton opened this issue Dec 11, 2021 · 3 comments

Comments

@bsutton
Copy link

bsutton commented Dec 11, 2021

This issue has been reported before but I'm hoping for a better solution rather than the previously offered work around.

When attempting to connect to a mysql 8 database the following error is reported:

MySQL Client Error: Authentication plugin not supported: caching_sha2_password

This is due to mysql changing the default authentication method to a more secure one.

Ideally this library would support this new method as the default method.

as a fall back it should be easy for a user to to configure galileo to connection to mysql 8 without having to reconfigure their database (which is some circumstances may be outside of their control).

The mysql connector offers the following:

cnx = mysql.connector.connect(user='lcherukuri', password='password',
host='127.0.0.1', database='test',
auth_plugin='mysql_native_password')

Note the additional connection parameter 'auth_plugin'.

It would be useful if this parameter could be passed to the galileo connection.
Mysql actually supports a number of other arguments so I wonder if we should simply allow a map of args to be passed.

@insinfo
Copy link
Owner

insinfo commented Dec 29, 2021

@bsutton
I've had little time to get involved in this, I'm very busy at work, if you want to read mysql documentation, study about it, implement and pull request (PR) I appreciate it.

@bsutton
Copy link
Author

bsutton commented Dec 29, 2021

I'm in the same situation time wise at the moment.
For the moment I've reverted to MySQL 5.

Will try to look at this at some point if the future unless something else wants to jump in.

@mayur-16
Copy link

I also had same issue with mysql 8
and i followed this method to solve it. now its working fine.

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

No branches or pull requests

3 participants