当我尝试登录postgres时出现以下错误:
# psql -U trifacta -h 127.0.0.1 trifacta
psql: FATAL: Ident authentication failed for user "trifacta"
# psql -d trifacta -U trifacta -w
psql: FATAL: Peer authentication failed for user "trifacta"
我已将trifacta用户添加到pg_hba.conf中。下面是pg_hba.conf脚本
local trifacta trifacta md5
host trifacta trifacta 127.0.0.1/32 md5
host trifacta trifacta ::1/128 md5
# Entries for trifactaactiviti user
local trifacta-activiti trifactaactiviti md5
host trifacta-activiti trifactaactiviti 127.0.0.1/32 md5
host trifacta-activiti trifactaactiviti ::1/128 md5
###### TRIFACTA ENTRIES - END ######
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
我已经通过将md5更改为同行和信任来测试,但仍然遇到了同样的问题。我不知道我还能在这里尝试什么。
感谢任何帮助。
提前致谢