windows安装PostgreSQL后进行远程连接,发生SSL错误

1. 报错情况

SSL 关闭 的 pg_hba.conf 记录 (pgjdbc: autodetected server-encoding to be

GB2312, if the message is not readable, please check database logs

and/or host, port, dbname, user, password, pg_hba.conf)

或是乱码提示,提示中有SSL、 pg_hba.conf

2. 原因

在远程连接时pg_hba.conf文件没有配置正确

3. 解决方法

  • 找到pg_hba.conf文件(在Postgre安装文件目录下的data文件夹中)
  • 打开pg_hba.conf文件,并在文件末尾添加
    host all all 0.0.0.0/0 md5
  • 重启postgresql的服务
相关推荐
2301_旺仔14 小时前
【prometheus】监控linux/windows
linux·windows·prometheus
Yiyi_Coding14 小时前
在Windows系统安装Docker
windows·docker·容器
全球通史14 小时前
Windows + WSL2 + RTX 2080 Ti 搭建 RDK X5 OpenExplorer GPU 量化环境实战
windows
韭菜钟1 天前
WIndows下一键切换网卡IP脚本
windows·网络协议·tcp/ip
Dontla1 天前
go语言Windows安装教程(安装go安装Golang安装)(GOPATH、Go Modules)
开发语言·windows·golang
有想法的py工程师1 天前
PostgreSQL 分区表排序优化:Append Sort 优化为 Merge Append
大数据·数据库·postgresql
liliangcsdn1 天前
mstsc不在“C:\Windows\System32“下在C:\windows\WinSxS\anmd64xxx“问题分析
开发语言·windows
低频电磁之道1 天前
解决 Windows C++ DLL 导出类不可见的编译错误
c++·windows
IDC02-阿杰1 天前
Windows WSL2安装Ubuntu24.04全攻略
linux·windows
BullSmall1 天前
Prometheus 如何配置监控 SSL 证书即将过期
网络协议·ssl·prometheus