今天IDEA使用druid连接Mysql数据库报错,MySQL版本5.7.34,druid-spring-boot-starter版本1.1.13。更新druid版本到最新1.2.6也没用。
“The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.”
“No appropriate protocol (protocol is disabled or cipher suites are inappropriate)”
2021-11-26 22:28:24.499 ERROR 9352 --- [eate-1043576110] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc:mysql://192.168.157.131:3306/uxue_cms?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8, errorCode 0, state 08S01
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.createCommunicationsException(SQLError.java:174)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsM