gpt4 book ai didi

PostgreSQL pg_hba.conf 问题

转载 作者:行者123 更新时间:2023-11-29 11:18:52 24 4
gpt4 key购买 nike

在 pg_hba.conf 中,我有

host    all             all             127.0.0.1/32            md5
host all all samenet md5

我也加了

host    all             all             samehost            md5

在两者上。

我正在使用 pgAdminIII,尝试创建“新服务器注册”。当我连接到 (localhost) 时,它工作正常。但是当我将主机更改为实际的工作站名称时,它会显示:

FATAL: no pg_hba.conf entry for host "fe80::c81c:9e9c:6570:d0bf%20", user "postgres", database "postgres", SSL off 

附加信息

  • 操作系统:Windows 7 旗舰版 32 位
  • PostgreSQL 服务器 9.0.2

如有任何帮助,我们将不胜感激。

最佳答案

这是在启用了 IPv6 的 Windows 计算机上安装 PostgreSQL 的问题。临时解决方法是传递参数“-h 127.0.01”,如本文所述。

http://postgresql.1045698.n5.nabble.com/FATAL-no-pg-hba-conf-entry-for-host-1-td1873063.html

关于PostgreSQL pg_hba.conf 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6643050/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com