0

我在 Windows 7 中安装了 OpenGeo Suite 2.4.5。我想从 cmd 访问 postgresql,但是当我尝试访问它时,我收到了这个错误:

    psql: could not connect to server: Connection refused (0x0000274D/10061)
         Is the server running on host "???" and accepting
         TCP/IP connections on port 5432?
    could not connect to server: Connection refused (0x0000274D/10061)
        Is the server running on host "???" and accepting
        TCP/IP connections on port 5432?

当我尝试通过 QGIS 连接时,即使我遇到同样的错误。我认为 postgresql 服务未列出,这就是我无法访问或连接它的原因。有人可以指导我。

谢谢

4

1 回答 1

1

终于..找到了答案。.. 在 CMD 上运行: c:\ psql -p 54321 -U postgres 并且类似地.. 将端口号更改为54321QGIS 以访问它。

于 2012-06-16T06:12:45.817 回答