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的服务
相关推荐
小羊没烦恼!1 天前
初探性能优化——2个月到4小时的性能提升
java·开发语言·windows·算法·c#
rockmelodies1 天前
# Windows Server2008 R2 Standard(SP1镜像U盘)重置本地管理员密码【完整详细步骤】
windows·密码破解
geovindu1 天前
sql: Transaction & Concurrency Patterns using postgresql 18
postgresql·数据库开发·数据库架构
thinking_talk1 天前
WorkBuddy应用生成背后的数据层:腾讯云PG
postgresql·腾讯云·云数据库
kakakahahahaha1 天前
Windows C盘空间不足的安全清理与迁移流程
windows·电脑·笔记本电脑·软件需求·c盘清理
做咩啊~1 天前
远程连接提示:身份验证错误,要求的函数不受支持
windows
百事牛科技1 天前
PPT只读怎么取消?四种情况分别处理
windows·powerpoint
Lsetea2 天前
Nginx报No required SSL certificate was sent:mTLS客户端证书排查
运维·nginx·https·ssl·openssl
知识的搬运工旺仔2 天前
唯一索引与 NULL 值:PostgreSQL 主键约束与 NULLS NOT DISTINCT
数据库·后端·sql·postgresql
熊明才2 天前
WSL2 网络突然瘫痪(Network is unreachable / 没有 eth0)最短修复指南(2026年9月20日亲测可用)
linux·windows·wsl2