linux下的(本机信任,其他所有机器可以MD5验证连接):
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
local all all trust
# IPv4-style local connections:
host all all 127.0.0.1 0.0.0.0 trust
# IPv6-style local connections:
host all all 0.0.0.0 0.0.0.0 md5
如果系统是windows(本机信任,其他所有机器可以MD5验证连接):
# TYPE DATABASE USER CIDR-ADDRESS METHOD
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all 0.0.0.0/32 md5
pg_hba.conf
最新推荐文章于 2023-11-30 15:17:00 发布