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 METHOD
host all all 127.0.0.1/32 trust
本文介绍了解决PostgreSQL中身份验证失败的问题,通常错误提示为:IDENT authentication failed for user 'postgres'。此问题源于使用了ident认证方式,可以通过修改pg_hba.conf文件中的配置来解决。
2807

被折叠的 条评论
为什么被折叠?



