当前位置:   article > 正文

远程连接“postgres“, no encryption pg hba.conf错误_database "postgres", no encryption

database "postgres", no encryption

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)

原因:

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

解决方法:

1、找到pg_hba.conf文件(在Postgre安装文件目录下的data文件夹中)

2、打开pg_hba.conf文件,并在文件末尾添加
host all all 0.0.0.0/0 md5

3、重启postgresql的服务,应该就可以连了。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/903406
推荐阅读
相关标签
  

闽ICP备14008679号