【发布时间】:2020-03-17 06:43:02
【问题描述】:
我已经安装了postgres,然后我在pg_hba.conf中创建了新用户并在127.0.0.1上打开了md5认证
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
但是现在如果我尝试通过带有“-h”标志和“127.0.0.1”的 psql 连接,而这个用户 psql 什么都不做。
-bash-4.2$ psql -h 127.0.0.1 -U k4fntr
只是冻结
【问题讨论】:
-
如果你
ssh root@127.0.0.1,你会看到类似的效果吗?
标签: postgresql psql