【问题标题】:osm2pgsql and postgresql 9.1 from homebrew failing to connect on Mac来自自制软件的 osm2pgsql 和 postgresql 9.1 无法在 Mac 上连接
【发布时间】:2012-06-14 00:46:59
【问题描述】:

我已经用自制软件安装了 osm2pgsql 和 postgresql (9.1),并且我已经确认 /usr/local/bin/osm2pgsql 和 /usr/local/bin/psql 是我的系统正在使用的版本(其中 psql,哪个osm2pgsql)。

当我尝试运行 osm2pgsql 时,我收到一个奇怪的连接错误:

osm2pgsql us-south.osm.pbf -r pbf
osm2pgsql SVN version 0.80.0 (32bit id space)

Error: Connection to database failed: could not connect to server: Permission denied
    Is the server running locally and accepting
    connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

有什么建议吗?我可以使用 Navicat 和 psql 在本地连接到我的数据库。

【问题讨论】:

    标签: postgresql homebrew openstreetmap


    【解决方案1】:

    添加“-H localhost”为我解决了这个问题。

    例如:

    osm2pgsql us-south.osm.pbf -H localhost -r pbf
    

    here

    【讨论】:

      猜你喜欢
      • 2015-04-07
      • 2018-06-25
      • 1970-01-01
      • 2018-10-30
      • 2015-06-24
      • 1970-01-01
      • 2021-08-29
      • 2013-10-14
      • 2017-07-16
      相关资源
      最近更新 更多