PostgreSQL: IDENT authentication failed for user postgres

前端之家收集整理的这篇文章主要介绍了PostgreSQL: IDENT authentication failed for user postgres前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Postgresql: IDENT authentication Failed for user postgres

出现这个问题是因为Postgresql的Client Authentication 使用了ident authentication.
通过修改pg_hda.conf可以解决.
Ref: http://www.postgresql.org/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 METHODhost all all127.0.0.1/32 trust

原文链接:https://www.f2er.com/postgresql/197446.html

猜你在找的Postgre SQL相关文章