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-06-29 11:55:04 发布