Skip to content

Need support for caching_sha2_password authentication #2005

Closed
@robwhess

Description

@robwhess

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions