DataGrip 不会连接到我的 Postgres 实例,但我可以通过psql
终端正常连接:
psql -h dbhost.com reps username
>Password for user... (connects)
但是,IntelliJ DataGrip 抛出:
Connection to username@dbhost.com failed.
SSL error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
它使用的连接字符串是jdbc:postgresql://dbhost.com:5432/dbname