PostgreSQL authentication method 10 not supported

﹥>﹥吖頭↗ 提交于 2020-12-04 08:59:35

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!