微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.jb51.cc/postgresql/197446.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐