我正在尝试连接到我的Heroku数据库,但是我遇到了与SSL相关的以下一系列错误:
SSL connection to data store using host matching failed. Retrying without host matching.
SSL connection to data store failed. Retrying without SSL.
Check that your connection definition references your JDBC database with correct URL syntax, username, and password. org.postgresql.util.PSQLException: Connection attempt timed out.
我成功使用 DBeaver 连接到了数据库,并且在设置 SSL Factory 为 org.postgresql.ssl.NonValidatingFactory
之前也遇到了类似的 SSL 问题,但是 Glue 没有提供任何 SSL 选项。
实际上,该数据库托管在 AWS 上,连接 URL 是:
jdbc:postgresql://ec2-52-19-160-2.eu-west-1.compute.amazonaws.com:5432/something
(p.s. AWS Glue论坛没什么用!他们似乎不回答任何人的问题)