Microsoft Windows [版本 10.0.16299.309]
(c) 2017 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>psql -h 192.168.80.148 -p 5532 -d postgres
psql: 无法联接到服务器: Connection refused (0x0000274D/10061)
服务器是否在主机 "192.168.80.148" 上运行并且准备接受在端口
5532 上的 TCP/IP 联接?
C:\Users\Administrator>psql -h 192.168.80.148 -p 5532 -d postgres
psql: FATAL: no pg_hba.conf entry for host "192.168.80.1", user "Administrator", database "postgres" ---->注意此处的user "Administrator"
C:\Users\Administrator>psql -h 192.168.80.148 -p 5532 -d postgres
psql: FATAL: no pg_hba.conf entry for host "192.168.80.1", user "Administrator", database "postgres"
C:\Users\Administrator>psql -h 192.168.80.148 -p 5532 -d postgres
口令:
psql: FATAL: password authentication failed for user "Administrator"
C:\Users\Administrator>psql -h 192.168.80.148 -p 5532 -d postgres -U pg102
用户 pg102 的口令:
psql: FATAL: password authentication failed for user "pg102"
C:\Users\Administrator>psql登录远程的服务器端
最新推荐文章于 2025-10-26 16:12:41 发布
本文记录了一次尝试从Windows系统通过psql客户端连接到远程PostgreSQL数据库的过程,并遇到了连接被拒绝、认证失败等问题。文中详细展示了错误信息及可能的原因,包括服务器未运行或配置不当、用户权限不足等。

1152

被折叠的 条评论
为什么被折叠?



