关于在使用DataGrip时连接mysql是报错:java.io.EOFException: Can not read response from server. Expected to ……
•
Jave
今天查看项目的数据库的时候,DataGrip报了一个错误,错误如下:
java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
该错误的表现就是localhost下的所有数据库都打不开,点击任何的数据库表都会报此错误。
我们如何解决,在进行了搜索之后发现我们只需要对我们电脑中的mysql服务进行重启就行了:
1. 点击任务管理器,点击服务,找到mysql,右键重新启动:

2.进入DataGrip,按照如图,点击刷新:

3.下面就可以啦:

问题解决
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://www.net2asp.com/c34ec0afcb.html
