我正在尝试使用 ArcCatalog 连接到 PostgreSQL。但我认为这并不重要。我什至无法连接到 pgAdmin。连接在本地主机上运行良好,问题仅在于来自远程 PC 的连接。
每次我收到错误时:
Failed to connect to the specified server.
Underlying DBMS error [Fatal: missing or erroneous pg_hba.conf file HINT: See server log for details.
SQL state:]
我无法理解这个错误的原因。我查看了 ESRI 站点并找到了名为“PostgreSQL DBMS for Windows”的工具,但它仅适用于 arcgis 10.1 和 Win x64。
我知道默认情况下 PostgreSQL 不允许远程连接,所以我将下一个文本放入 pg_hba.conf:
host all all 127.0.0.1/32 md5
host all all 169.254.231.203 trust
host all all 0.0.0.0/0 trust