1、工具报错
An error occurred while establishing the connection:
Long Message:
Communications link failure
The last packet successfully received from the server was 2 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.
Details:
Type: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
SQL State: 08S01
2、查看日志
2021-06-02T09:46:12.290229Z 2 [Note] Bad handshake
2021-06-02T09:48:00.771396Z 3 [Note] Bad handshake
2021-06-02T09:48:01.800641Z 4 [Note] Bad handshake
2021-06-02T09:48:02.511804Z 5 [Note] Bad handshake
报错多个Bad handshake
3、解决办法
网上说是因为5.7.30默认打开了SSL连接
连接串使用useSSL=false,或者在my.ini文件中增加
[mysqld]
skip_ssl
参考资料:
https://blog.csdn.net/weixin_39550940/article/details/110870152