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

Unknown authentication protocol: sha256_password #396

Open
lukasradek opened this issue Jan 28, 2025 · 0 comments
Open

Unknown authentication protocol: sha256_password #396

lukasradek opened this issue Jan 28, 2025 · 0 comments

Comments

@lukasradek
Copy link

Hello,

I am on a

RPi5 with Raspbian (Linux pi5 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux)
latest official mysql docker containier (9.2)
and I am using this crate (tried v 25.0.0 and 26.0.0) in my Rust project to connect to the database.

I am using Pool::new method to create a DB connection and I am getting this error

Pool: Could not connect to MySQL db!: DriverError { Unknown authentication protocol: sha256_password }

I have already checked what auth plugin is set in the mysql.users table inside the DB and it is caching_sha2_password, so I am not really sure where is the sha256_password comming from.

Thanks

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

1 participant