我们没有遇到任何问题,但是几个月没有运行 prisma DB seeding,当团队试图重新做时,我们在 Pgadmin 中遇到了以下错误。我们已经被封锁了 1 周多了。
完整错误: 连接到“DBNAME.b.db.ondigitalocean.com”(IP 地址)的服务器,端口 25060 失败:致命:pg_hba.conf 拒绝主机“IP 地址”、用户“NAME”、数据库“NAME”、SSL 加密的连接
连接到“DBNAME.b.db.ondigitalocean.com”(IP 地址)的服务器,端口 25060 失败:致命:主机“IP 地址”、用户“NAME”、数据库“NAME”没有 pg_hba.conf 条目,没有加密
将更新信息输入到 pg_hba.conf 文件中的顺序重要吗?如果是这样,正确的顺序是什么?
我可以采取哪些步骤来解决问题?引用的任何文章是否已经实际提供了解决方案?
当前的 pg_hba.conf 文件如下所示。在我们尝试进行链接中建议的更改后,我们的 postgresql 停止一起工作,因此我们恢复到原始文件。
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all scram-sha-256
# IPv4 local connections:
host all all 127.0.0.1/32 scram-sha-256
# IPv6 local connections:
host all all ::1/128 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all scram-sha-256
host replication all 127.0.0.1/32 scram-sha-256
host replication all ::1/128 scram-sha-256
https://dba.stackexchange.com/questions/83984/connect-to-postgresql-server-fatal-no-pg-hba-conf-entry-for-host https://dba.stackexchange.com/questions/264560/need-help-understanding-the-error-message-error-connecting-to-database-fatal https://dba.stackexchange.com/questions/161104/pgadmin-postgresql-no-pg-hba-conf-entry-for-host https://dba.stackexchange.com/questions/320468/postgresql-fatal-no-pg-hba-conf-entry-for-host-ipv6-user-user-databas
我们在这里查看了一些关于堆栈交换的相关文章。 尝试将其更改为事件侦听器是 * 并更改为托管所有 0.0.0.0/0 且每个用户都受信任 @joanalo 的回答 它仍然说同样的错误,我们希望错误得到解决。