DataGrip无法连接上Mysql问题解决方案[08001]
该方法也适用于IDEA中的MYSQL插件无法连接的问题


一.软件版本

1.IDEA 2020.1.1

2.DataGrip 2019.1.4

3.Mysql-5.6.26


二.问题:

如下图片:

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法


三.原因:

1.时区没有设置

2.驱动包没有设置好


四.解决:

1.将时区设置为Asia/Shanghai

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

2.导入驱动jar包,可以去官网下载https://dev.mysql.com/downloads/file/?id=496589,这个是Connector/J 8.0.21

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法


五.重新尝试连接

重新输入密码并连接后解决
[08001]DataGrip和IDEA无法连接上Mysql问题解决方法


六.补充
关于下载驱动jar包,Oracle官网比较迷
如下:

1.百度mysql官网

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

2.Downloads

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

3.向下翻页,Mysql community(GPL) Downloads

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

4.选择Connector/J

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

5.找之前的版本

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

6.找最新版本

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

7.下载

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

8.选择否开始下载

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

9.下载成功

[08001]DataGrip和IDEA无法连接上Mysql问题解决方法

相关文章:

  • 2021-06-14
  • 2021-05-15
  • 2021-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-06-17
猜你喜欢
  • 2021-06-10
  • 2021-07-03
  • 2021-11-07
  • 2021-11-21
  • 2021-09-04
  • 2022-01-22
  • 2021-12-15
相关资源
相似解决方案