簡體   English   中英

在 cpanel 中遠程連接到 postgresql

[英]remote connection to postgresql in cpanel

我有一個 spring 引導應用程序,我試圖將它連接到在 cpanel 服務器中創建的遠程數據庫 (postgresql),但出現此錯誤:設置 GSS 編碼連接時發生錯誤,為了修復它,我添加了 gssEncMode=disable,然后我得到這個錯誤:Une erreur s'est produite pendant l'établissement de la connexion SSL。這是我的 application.properties:

spring.datasource.url=jdbc:postgresql://host:port/db?gssEncMode=disable
spring.datasource.username=admin
spring.datasource.password=admin
spring.jpa.hibernate.ddl-auto=update
server.port=9080
spring.servlet.multipart.max-file-size=500KB
spring.servlet.multipart.max-request-size=500KB
spring.jackson.serialization.fail-on-empty-beans=false

請幫我解決這個問題:? 問題?如何獲取我的 cpanel 服務器的主機和端口? 我如何配置我的 postgresql 數據庫以接收來自 spring 啟動應用程序的連接?將 spring 啟動應用程序連接到在 cpanel 中創建的 postgresql 數據庫的步驟是什么?

也將此參數添加到 jdbc url 然后重試:

sslmode=require

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM