问答详情
源自:1-6 IDEA部署和导入guns

idea部署报错

java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:108) ~[mysql-connector-java-8.0.11.jar:8.0.11]

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95) ~[mysql-connector-java-8.0.11.jar:8.0.11]

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:87) ~[mysql-connector-java-8.0.11.jar:8.0.11]

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:61) ~[mysql-connector-java-8.0.11.jar:8.0.11]


提问者:圣所 2018-09-11 11:43

个回答

  • muang
    2018-09-13 17:14:45

    因为mysql版本问题。 把mysql导入包降低 就好了  顺便把https://img4.mukewang.com/5b9a2a750001c5ad05410134.jpg

    driver-class-name 更改掉就好了