【发布时间】:2012-08-08 11:28:03
【问题描述】:
这是我pg_hba.conf的相关部分:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all ident
# IPv4 local connections:
host all all 127.0.0.1/32 ident
# IPv6 local connections:
host all all ::1/128 ident
pidentd 服务正在运行。
当我尝试登录 ee1 时(我假设默认用户是 postgres):
psql ee1
它说“用户 postgres 的对等身份验证失败”
我在哪里为“postgres”配置了
peer身份验证?我是ident。-
当我在
pg_hba.conf中更改以下行时:local all all ident到
local all all md5它要求我输入密码,我可以登录。为什么更改本地连接类型会影响 postgres 用户?
【问题讨论】:
标签: postgresql connection localhost