连接PG数据库报错failed: received invalid response to SSL negotiation: 2
Tags: PGPostgreSQL故障处理连接问题
现象
1 2 | C:\Users\lhr>psql -h 127.0.0.1 -p 8184 -U xxt psql: error: connection to server at "127.0.0.1", port 8184 failed: received invalid response to SSL negotiation: 2 |
分析
使用命令telnet 127.0.0.1 8184
返回:220 (vsFTPd 3.0.2)
可见,8184并不是PG数据库的端口。。。。。