3

关于 Datagrip 无法连接数据库而 Navicat 可以连接的问题

 2 months ago
source link: https://www.v2ex.com/t/1028325
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

关于 Datagrip 无法连接数据库而 Navicat 可以连接的问题

  Elaina · 5 小时 10 分钟前 · 565 次点击

现在的网络是这样的,有一台服务器,配置好了 zerotier 。 然后使用 zerotier 的 ip ,远程连接数据库,zerotier 提供的 ip 段是 172.31.xx.xx 。

当我使用了 surge 的系统代理+增强模式( tun 模式)之后,Datagrip 就无法连接远端数据库了,但是 Navicat 可以,当关掉 surge 之后,Datagrip 才能顺利连接,这个有什么解决办法吗?

使用 surge 的请求查看器观察到是匹配的直连规则,但花费了 10s 才建立连接,但是我 ping 这个 ip 只有 30-40ms ,ssh 之类的速度也很快。

1.png

以及 Datagrip 报错是这样的,但这个错误提示好像并没有任何信息量。

2.png

求 v 友们指点一下,有什么解决办法吗?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK