📌  相关文章
📜  PG::ConnectionBad(SCRAM 身份验证需要 libpq 版本 10 或更高版本 web_1 | ) - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:37.183000             🧑  作者: Mango

代码示例1
Your application uses an API that is linked with the PostgreSQL client C library libpq.

The version of that library must be 9.6 or older, and SCRAM authentication was introduced in v10.

Upgrade libpq on the application end and try again.

If you don't need scram-sha-256 authentication, you can revert to md5:

set password_encryption = md5 in postgresql.conf
change the authentication method to md5 in pg_hba_conf
reload PostgreSQL
change the password of the user to get an MD5 encrypted password