681 Star 4.6K Fork 2K

GVPssssssss-team / spider-flow

 / 详情

jdbc链接失败(看上去是代码mysql5.0,本机是8.0导致)怎么修改代码

Backlog
Opened this issue  
2021-11-28 21:37

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

Comments (1)

刘浩 created任务

已解决
1.导入 8.0.13 mysql驱动jar
2.修改 pom 加入 8.0.13

mysql
mysql-connector-java
8.0.13

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
Java
1
https://git.oschina.net/ssssssss-team/spider-flow.git
git@git.oschina.net:ssssssss-team/spider-flow.git
ssssssss-team
spider-flow
spider-flow

Search