Postgresql PG::ConnectionBad

Postgresql PG::ConnectionBad,postgresql,pg,Postgresql,Pg,我在Windows上工作。我尝试使用PostgreSQL数据库 我有这个错误 我无法通过搜索找到解决方案,因为错误页中有这些符号。 请帮我找到解决这个问题的正确方法 编辑:请从我的pg_hba.conf文件中查找数据 # TYPE DATABASE USER ADDRESS METHOD # IPv4 local connections: host all all 12

我在Windows上工作。我尝试使用PostgreSQL数据库

我有这个错误

我无法通过搜索找到解决方案,因为错误页中有这些符号。 请帮我找到解决这个问题的正确方法

编辑:请从我的pg_hba.conf文件中查找数据

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128                 md5

将跟踪作为文本而不是图像发布将是有益的,因为这将使查看更容易,老实说,但是跟踪似乎没有透露太多信息。您是否确认数据库用户名、密码、主机和名称都是正确的,脚本一般都可以连接。谢谢您的回答,对不起,因为我太跛了。我不知道如何证实这一切。我相信我需要在我的pg_hba.conf文件中做一些设置,你可以在我的帖子中找到。
# TYPE  DATABASE        USER            ADDRESS                 METHOD

# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128                 md5