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 sha256_password pluggable authentication #625

AlekSi opened this Issue Jun 27, 2017 · 4 comments


None yet
6 participants

AlekSi commented Jun 27, 2017

Edit: Note that support for caching_sha2_password is already implemented. See #794.


This comment has been minimized.


elemount commented Jun 28, 2017

It seems that is related on #552 , and the implement is depends on it will be accepted or not.


This comment has been minimized.


twocode commented Jun 28, 2017

Previously I made a patch supporting auth switching to native password (sha1) on this and I definitely vote that we should start sha256 support now.


This comment has been minimized.

geertjanvdk commented Jan 26, 2018

Just a friendly note that with MySQL 8.0.4-rc comes a new default for authentication: caching_sha2_password is now used when creating users.

If you want to use a go-sql-driver/mysql supported authentication plugin, you have to create/alter users to use a different one.

As as workaround, you could use the MySQL Native Password plugin:

ALTER USER  'youruser'@'%' IDENTIFIED WITH 'mysql_native_password' BY 'secret';

Note that you will need to explicitly set "allowNativePasswords=True" in the DSN.

(I did implement auth plugins in MySQL Connector/Python, I know the pain)

@AlekSi AlekSi referenced this issue Jan 31, 2018


Use Docker Compose for testing #697

3 of 5 tasks complete

@julienschmidt julienschmidt self-assigned this Mar 3, 2018


This comment has been minimized.

lefred commented Mar 22, 2018

Hello, if you are looking for help, MySQL engineers working on authentication plugins and connectors will be happy to assist you. You can reach us on the MySQL Community Slack ( Keep the good work !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment