【问题标题】:Can't connect to the default server of pgAdmin 4无法连接到 pgAdmin 4 的默认服务器
【发布时间】:2017-02-13 07:00:11
【问题描述】:

我刚刚安装了 pgAdmin-4,并尝试连接到安装它的默认服务器(PostgreSQL 9.5)。它要求输入密码(我默认它是“postgres”),但是,我不断收到以下消息:

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

我正在使用 Windows 7。

关于如何解决这个问题的任何想法?

【问题讨论】:

    标签: postgresql pgadmin pgadmin-4


    【解决方案1】:

    第一件事是从问题中删除pgadmin。尝试使用psql 与命令行连接 - 如果您收到相同的消息,您就知道问题不在于 pgadmin。如果 psql 问题仍然存在,那么您的 postgresql 配置可能不完整。问题可能出在文件 pg_hba.conf 中 - 此文件控制允许谁连接到后端。您还可以使用适当的 Windows 实用程序检查服务器应用程序是否正在运行。

    【讨论】:

      猜你喜欢
      • 2021-09-17
      • 1970-01-01
      • 2023-04-08
      • 2020-06-17
      • 1970-01-01
      • 2020-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多