Skip to the content.

[远程]Postgresql允许远程访问配置修改

参考链接

两处修改

1.postgresql.conf

listen_addresses项值设定为“”,在9.0 Windows版中,该项配置已经是“”无需修改。

2.pg_hba.conf

host all all 127.0.0.1/32 md5行下添加以下配置
host    all    all    0.0.0.0/0    md5
md5 加密
trust 免密