【问题标题】:Unable to connect to my newly created postgresql server in Azure无法连接到我在 Azure 中新创建的 postgresql 服务器
【发布时间】:2017-05-16 18:53:54
【问题描述】:

在 Azure Database for PostgreSQL 服务中创建新服务器后,尝试连接到该服务器时出现以下错误。服务器已创建,因为我在 Azure 门户上看到了相关通知,并且还可以在 Azure 门户上查看服务器详细信息。

psql:致命:主机“<ipv4 address>”、用户“cloudsa”、数据库“postgres”没有 pg_hba.conf 条目,

我是否遗漏了使我的客户端 (pgadmin/psql) 可以访问我的 postgres 服务器的任何步骤?

【问题讨论】:

    标签: postgresql azure firewall azure-database-postgresql


    【解决方案1】:

    在 Azure 中创建新的 postgresql 服务器后立即出现此错误的最常见原因是未正确设置防火墙规则,因此您的应用程序/客户端可以访问新创建的服务器。阅读有关firewall settings in Azure 的更多信息,并使用portalCLI 来管理新创建的postgres 服务器的防火墙规则。正确设置防火墙规则后,您应该能够连接到服务器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-24
      • 1970-01-01
      • 2019-10-08
      • 2017-06-05
      • 2017-08-02
      • 2017-03-03
      • 2012-10-10
      • 1970-01-01
      相关资源
      最近更新 更多