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