将 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 failureThe 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 升级之前立即工作 - 所以升级似乎需要新的驱动程序,这对我的连接方式有问题。
最佳答案
经过一番查看 - 似乎 Aurora 存在竞争条件 - 在这里找到了我的答案:https://jira.mariadb.org/browse/CONJ-824?focusedCommentId=165412&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-165412
我的解决方案是在数据源配置的高级选项卡中将我的 usePipelineAuth 更改为 false(未事先设置):
这修复了我的人脉关系,让我重新开始工作。
关于DataGrip 升级后 MySQL 数据库连接中断 (2021.3.x),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70406317/