PostgreSQL遠端連線,發生的SSL錯誤

2021-09-27 04:38:45 字數 515 閱讀 8034

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的服務,應該就可以連了。

PostgreSql 配置遠端連線

修改 var lib pgsql 10 data pg hba.conf 配置對資料庫的訪問許可權 local is for unix domain socket connections only local all all password ipv4 local connections host ...

PostgreSQL遠端連線配置

postgresql預設情況下,遠端訪問不能成功,如果需要允許遠端訪問,需要修改兩個配置檔案,說明如下 1.postgresql.conf 將該檔案中的listen addresses項值設定為 在9.0 windows版中,該項配置已經是 無需修改。2.pg hba.conf 在該配置檔案的hos...

遠端連線postgresql和redis設定

閱讀目錄 回到頂部 1.1 編輯 pg hba.conf,配置使用者的訪問許可權 vi etc postgresql 8.4 main pg hba.conf 增加設定項 host all all 192.168.1.0 24 md5 注 1.2 編輯 postgresql.conf,使資料庫伺服器...