从 DataGrip 连接到 CockroachDB

问题描述

尝试使用 DataGrip 将 Postgres 连接到 CockroachDB,但出现此错误:

[08006] 提供的 SSLSocketFactory 类 com.intellij.execution.rmi.ssl.SslSocketFactory 不能 实例化。有符号溢出,字节 = 919。

来自 DataGrip 连接界面:

网址:

jdbc:postgresql://localhost:26257/postgres

使用端口 26257 并启用 SSL

CA 文件

/cert/ca.key

客户端证书文件:

/certs/client.root.crt

客户端密钥文件:

/client.root.key

上述设置不适用于 DataGrip,但相同的证书适用于 CLI

cockroach cert create-client root --certs-dir=certs --ca-key=/ca.key

cockroach start --certs-dir=certs --store=node1 --listen-addr=localhost:26257 --http-addr=localhost:8080 --join=localhost:26257,localhost:26258,localhost:26259 --background

DataGrip 配置可能有什么问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)