不支持 PostgreSQL 身份验证方法 10 [英] PostgreSQL authentication method 10 not supported

查看:1546
本文介绍了不支持 PostgreSQL 身份验证方法 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照 diesel.rs 教程使用 PostgreSQL.当我进入 Diesel 设置步骤时,我收到不支持身份验证方法 10"的提示.错误.我该如何解决?

I'm trying to follow the diesel.rs tutorial using PostgreSQL. When I get to the Diesel setup step, I get an "authentication method 10 not supported" error. How do I resolve it?

推荐答案

您必须将 PostgreSQL 客户端软件(在本例中为 Rust 驱动程序使用的 libpq)升级到支持 scram- 的更高版本sha-256 PostgreSQL v10 中引入的认证方式.

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.

将 PostgreSQL 中的 password_encryption 降级到 md5,更改所有密码并使用 md5 身份验证方法是一种可能,但不是很好的选择.这需要更多的努力,而且您的安全性和旧的、有缺陷的软件也会变得更糟.

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.

这篇关于不支持 PostgreSQL 身份验证方法 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆