问题描述
springboot 2.3.7
mysql-connector-java 8.0.22
mysql 8.0.3
openjdk 14.0.1 (尝试过 jdk 1.8)
在使用 springboot 2.2.2 版本时,没有任何问题,切换到 2.3.7版本报如下错误:02:54:54.036 logback [http-nio-8090-exec-1] DEBUG com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to create/setup connection: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
02:54:54.038 logback [http-nio-8090-exec-1] DEBUG com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Cannot acquire connection from data source
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsExcepti
最后
以上就是冷傲秀发最近收集整理的关于springboot链接mysql出错_springboot2.3.7连接mysql错误?的全部内容,更多相关springboot链接mysql出错_springboot2内容请搜索靠谱客的其他文章。
发表评论 取消回复