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

Question: MySQL 8 compatibility #975

Closed
dublx opened this issue Jun 6, 2019 · 5 comments
Closed

Question: MySQL 8 compatibility #975

dublx opened this issue Jun 6, 2019 · 5 comments
Labels

Comments

@dublx
Copy link

dublx commented Jun 6, 2019

Hi,
I'm using this module indirectly via dependency from https://github.com/fastify/fastify-mysql.
In there a disclaimer says that MySQL 8.x is not supported, althought I have been using it fine so far.
I raised this question there: fastify/fastify-mysql#24, would be great to get a quick comment on that from the maintainers here.

Thanks!

@sidorares
Copy link
Owner

sidorares commented Jun 6, 2019

At the moment default mysql8 auth method is not yet supported ( there is some slow progress in fast-caching_sha2_password branch but last few months I'm quite busy with work and family and don't have much time to focus on this )

You can still use this driver with mysql8 server if you change auth plugin to mysql_native_password, the rest of the wire protocol is the same for mysql8, it's just default auth method is different

mysqljs/mysql also is working on getting this auth supportred, you can track progress here: mysqljs/mysql#1962

For this library as first step I want to add proper full support for auth plugins, and then later add caching_sha2_password as bundled plugin

@dublx
Copy link
Author

dublx commented Jun 6, 2019

Great, thanks for the quick reply!

@iblessedi
Copy link

how are things going now? Can I use mysql2 with mysql v.8 ?

@sidorares
Copy link
Owner

@iblessedi yes

@Shuvo-Hoque
Copy link

Shuvo-Hoque commented May 27, 2024

@sidorares did you mean the version of MySQL–8.0 (https://dev.mysql.com/doc/refman/8.0/en/) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants