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

Need support for caching_sha2_password authentication #2005

Closed
robwhess opened this issue May 1, 2018 · 1 comment
Closed

Need support for caching_sha2_password authentication #2005

robwhess opened this issue May 1, 2018 · 1 comment

Comments

@robwhess
Copy link

robwhess commented May 1, 2018

MySQL uses the caching_sha2_password authentication plugin by default in version 8.0:

https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html

Trying to use the mysql package to query against a server using this authentication plugin results in the following error:

{
  code: 'ER_NOT_SUPPORTED_AUTH_MODE',
  errno: 1251,
  sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client',
  sqlState: '08004',
  fatal: true,
  ...
}

With MySQL version 8.0 recently released for general availability, it would be nice to be able to use the mysql package to run queries against a MySQL 8.0 server without messing with the server's configuration.

This issue stems from my comment on #1507. I apologize for posting there in the wrong thread. I don't have the time or understanding of this package or the internals of MySQL to submit a PR for this myself, but I wanted to bring it to the attention of the maintainers, since it may become a pressing issue as more people start to use MySQL 8.0.

@dougwilson
Copy link
Member

It's no problem. I also apologize for then going and closing your issue here, but just trying to clean up. I believe this is a duplicate of #2002

Please let me know if it's not a duplicate, though, and I can reopen. I may need more information though to understand what isn't a duplicate to better assist 👍

@mysqljs mysqljs deleted a comment from hackdavid May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants