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的服务
相关推荐
smallyoung1 天前
数据库乐观锁深度解析:MySQL、PostgreSQL 实战 + Spring Boot 集成指南
数据库·mysql·postgresql
qq_3692243316 天前
Windows全系通用!ntdll.dll文件丢失、报错、闪退问题的完整排查与修复教程
windows·dll·dll修复·dll丢失·dll错误
程序员mine16 天前
HTTPS-TLS加密与证书完全指南(中)
网络协议·https·ssl
秉承初心16 天前
PostgreSQL 数据性能瓶颈突破实战
数据库·postgresql·oracle
阿米亚波16 天前
【Windows】QEMU 启动 openEuler aarch64/arm64 架构系统 + 离线软件源
linux·windows·经验分享·笔记·架构·arm
caimouse16 天前
Reactos 第 10 章 网络操作 — 10.3.1 NIC驱动
网络·windows
初圣魔门首席弟子16 天前
Node.js 详细介绍(知识库版)
windows·qt·node.js·知识库
IvorySQL16 天前
PostgreSQL 技术日报 (6月15日)|PG19 性能优化推进,POSETTE 大会倒计时 2 天
数据库·人工智能·postgresql·开源
CHENG-JustDoIt16 天前
AI工具 | 爆火开源项目Odysseus AI 工作台:从项目介绍、部署情况及其使用等多方位分析指南(含详细步骤)
大数据·人工智能·windows·python·ai·开源·github
kingbal16 天前
Windows:flutter环境搭建
windows·flutter