远程连接postgresql “postgres“, no encryption pg hba.conf 最后更新时间:2025年12月02日 SL 关闭 的 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) 原因: 这是在远程连接时pg_hba.conf文件没有配置正确。 解决方法: 1、找到pg_hba.conf文件(在Postgre安装文件目录下的data文件夹中) 2、打开pg_hba.conf文件,并在文件末尾添加 host all all 0.0.0.0/0 md5 3、重启postgresql的服务,应该就可以连了。 ———————————————— 原文链接:https://blog.csdn.net/cuisidong1997/article/details/135522383
Comments | NOTHING