帮助中心 >  技术知识库 >  数据库 >  数据库管理 >  PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host

PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host

2018-05-04 20:07:34 9896

ostgreSQL: IDENT authentication failed for user postgres

出现这个问题是因为PostgreSQL的Client Authentication 使用了ident authentication. 
通过修改pg_hda.conf可以解决.
Ref: http://www.landui.com/docs/8.1/interactive/client-authentication.html

# Allow any user on the local system to connect to any database under
# any database user name using Unix-domain sockets (the default for local
# connections).
#
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
local       all                    all                                                        trust

# The same using local loopback TCP/IP connections.
#
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
host        all                    all               127.0.0.1/32                  trust  


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: