问题
So I'm trying to follow the diesel.rs tutorial using PostgreSQL (https://diesel.rs/guides/getting-started/). When I get to the diesel setup step I get an "authentication method 10 not supported" error. I've looked this up on Google and have not found any solutions to this. Hoping someone here knows how to resolve it. Thanks.
回答1:
You have to upgrade the PostgreSQL client software (in this case, the libpq used by the Rust driver) to a later version that supports the scram-sha-256 authentication method introduced in PostgreSQL v10.
Downgrading password_encryption in PostgreSQL to md5, changing all the passwords and using the md5 authentication method is a possible, but bad alternative. It is more effort, and you get worse security and old, buggy software.
来源:https://stackoverflow.com/questions/64474420/postgresql-authentication-method-10-not-supported