[英]Cannot connect to heroku postgres database using Netbeans
我正在嘗試使用 Netbeans(內置)服務/數據庫連接到托管在https://postgres.heroku.com/databases中的數據庫。 我收到此錯誤
無法與 jdbc 建立連接:postgresql://ec2-xx-xxx-xxx-xxx.compute-1.am
我試過沒有問題: 1. Netbeans 連接到本地 postgres 數據庫。 2. 使用 PgAdmin III 連接到 heroku postgres 數據庫。
我嘗試下載最新的 postgres 驅動程序並在 netbeans 中使用它來創建連接,但出現相同的錯誤。
提前致謝!
在 Heroku 外部(例如本地)連接時,將其添加到 JDBC 連接 URL 的末尾:
?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.