Skip to content

Unknown authentication protocol: sha256_password #396

@lukasradek

Description

@lukasradek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions