概述
问题描述
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.3.7连接mysql错误?所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复