PostgreSQ 連接問題 FATAL: no pg_hba.conf entry for host
2018-05-04 20:07:34
13468
ostgreSQL: IDENT authentication failed for user postgres
出現(xiàn)這個(gè)問題是因?yàn)镻ostgreSQL的Client Authentication 使用了ident authentication.
通過修改pg_hda.conf可以解決.
Ref: http://www.tjdsmy.cn/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