com.alibaba.druid.pool.DruidDataSource: create connection SQLException, url: ……, errorCode 0, state 08S01
例如:
2021-05-12 10:45:51.100 ERROR 15264 --- [reate-630359980] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc:mysql://xxx.xxx.xxx.xxx:xxxx/your database name?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai, 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 ……
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at ……
在数据库连接地址中,追加useSSL=false,即可