PGADMIN4 SCRAM身份验证LIBPQ 10

发布于 2025-02-10 12:46:17 字数 556 浏览 1 评论 0原文

首先 - 我不是专家(至少可以说)。 我想在Raspberry Pi 4上设置一个PostgreSQL数据库,并使用Ubuntu Desktop 22.04 LTS和PGADMIN4设置一个数据库,但我被卡住了。

在Python虚拟环境中运行PGADMIN并到达127.0.0.1:5050后,出现登录页面,似乎一切都很好,直到我尝试设置新服务器。在提供服务器名称和地址警报之后出现:“无法连接到PostgreSQL Server:SCRAM身份验证需要LIBPQ版本10或更高版本“

修改password> password> password> password-codemption and code> method> method> in 中的方法 pg_hba.conf 和postgresql.conf to md5没有帮助。

Postgres 14,PGADMIN 4 V 6.10,LIBPQ-DEV已经是最新版本(14.4-1.pgdg22.04+1)。

有什么建议吗?

First of all - I'm not an expert (to say the least).
I want to set up a PostgreSQL database on my Raspberry Pi 4, with Ubuntu Desktop 22.04 LTS and pgAdmin4, but I got stuck.

After running pgadmin in Python Virtual Environment and going to 127.0.0.1:5050, login page appears, all seems fine, until I try to set up a new server. After providing server name and address alert appears: "Unable to connect to PostgreSQL server: SCRAM authentication requires libpq version 10 or above"

Modifying password-encryption and METHOD in pg_hba.conf and postgresql.conf to md5 did not help.

Postgres 14, pgAdmin 4 v 6.10, libpq-dev is already the newest version (14.4-1.pgdg22.04+1).

Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑咖 2025-02-17 12:46:17

我尝试了许多更改密码,配置和重新启动的组合。这是有效的方法:

  1. 我已从usr/lib/aarch64-linux-gnu(libpq.so.5和libpq.so.5.14单独删除libpq.so)
  2. 更改了所有method pg_hba.conf to Trust&重新启动Postgres
  3. 更改password-recryption postgresql.conf to md5&重新启动用户的Postgres
  4. 重置密码Postgres(由于“方法/信任”可能是多余的)&重新启动Postgres
    ...而且有效。

谢谢你!

I have tried many combinations of changing passwords, configs and restarting. Here's what worked:

  1. I have removed libpq.so from usr/lib/aarch64-linux-gnu (libpq.so.5 and libpq.so.5.14 are left alone)
  2. Changed all METHODs in pg_hba.conf to trust & restart postgres
  3. Changed password-encryption in postgresql.conf to md5 & restart postgres
  4. Reset password for user postgres (which might have been redundant due to "method/trust") & restart postgres
    ...and it works.

Thank you!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文