咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
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