DataGrip升级到2021.3.x后,MySQL数据库连接中断。

3
升级DataGrip至版本2021.3.2后,我的现有数据库连接断开了。我通过配置连接到AWS堡垒机的SSH隧道连接各种数据库(Oracle,MySql)。
升级后,DataGrip建议将MySql驱动程序更新为Amazon Aurora MySQL驱动程序,但原来可以连接的地方现在无法连接。
在不同的驱动程序之间切换,我得到两个单独的错误:
使用Amazon Aurora MySQL(升级后建议使用的驱动程序)的第一个错误如下:
[08000][-1] Could not connect to address=(host=localhost)(port=53929)(type=master) : (conn=57522706) could not load system variables[08000][1220] (conn=57522706) Connection is closed.
使用原始MySQL驱动程序的第二个错误如下:
[08S01] Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. No appropriate protocol (protocol is disabled or cipher suites are inappropriate).
在DataGrip升级前,所有的连接都可以正常工作 - 看起来升级需要新的驱动程序,但这些驱动程序与我的连接方式存在问题。
2个回答

7

0

最后,在我的情况下,我通过替换/使用MariaDB驱动程序来解决了这个问题。

enter image description here


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接