Skip to content

Conversation

macboy012
Copy link
Contributor

A trivial change to allow for setting the authentication plugin used when connecting to mysql.
The auth_plugin parameter is the same parameter name used by mysql-connector-python and seemed sensible.

@methane
Copy link
Member

methane commented Oct 22, 2019

Why do you want this option?
As far as I know, this option is totally useless.

@macboy012
Copy link
Contributor Author

I'm using Proxysql which only supports mysql_native_password. When using libmysqclient21 the new default is caching_sha2_password so I'm unable to connect to Proxysql.
I understand there are some protocol capabilities for negotiating authentication method, but these seem to be unsupported by Proxysql. So, my solution is to set the correct auth plugin before connecting.

@methane methane merged commit acf4cdc into PyMySQL:master Oct 23, 2019
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.

3 participants