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

mysql_native_password or caching_sha2_password #281

Closed
adrianboston opened this issue Jan 4, 2024 · 3 comments
Closed

mysql_native_password or caching_sha2_password #281

adrianboston opened this issue Jan 4, 2024 · 3 comments

Comments

@adrianboston
Copy link

adrianboston commented Jan 4, 2024

More of a question

What auth plugin is this driver using:
mysql_native_password
aching_sha2_password

I see that the non async mysql offers both along with mysql_clear_password.

I swapped to a different dbms server (with a newer version) and i cannot connect any longer. Tried several things but this seems to stand out. Although a new user was created with the mysql_native_password identification; still failed.

@blackbeam
Copy link
Owner

Hi. This driver supports mysql_native_password, aching_sha2_password as well as mysql_old_password (if secure_auth is disabled) and mysql_clear_password (if enable_cleartext_plugin is set)

@adrianboston
Copy link
Author

adrianboston commented Jan 5, 2024

Oh nice. I will test caching_sha2_password out. Edited: Yes a user identified by caching_sha2_password does work.

It turned out to be a different issue -- which others may run into.

It seems that the driver cannot connect to the local loopback. Setting the host as either "localhost" or "127.0.0.1" seems to consistently fail.

The resolution was setting bind-address = "0.0.0.0" in mysql conf.

@adrianboston
Copy link
Author

I believe this is closed,
The resolution was setting bind-address = "0.0.0.0" in mysql conf.

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

No branches or pull requests

2 participants