0

我正在尝试使用 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
4

1 回答 1

0

请检查 169.254.231.203 是有效的 IP 地址。您应该配置pg_hba.conf以远程访问您的数据库。我希望这些链接对您有所帮助。

  1. http://www.postgresql.org/docs/devel/static/auth-pg-hba-conf.html
  2. http://www.linuxtopia.org/online_books/database_guides/Practical_PostgreSQL_database/c15679_002.htm
于 2012-09-27T11:31:28.320 回答