在使用idea连接数据库时,出现错误:
The server has terminated the handshake. The protocol list option (`enabledTLSProtocols`) is set, this option might cause connection issues with some versions of MySQL. Consider removing the protocol list option in the JDBC driver.
在解决是就是将 url设置一下:
jdbc:mysql://172.20.10.5:3306/beacon_cloud?useSSL=false&serverTimezone=Hongkong&characterEncoding=utf-8&autoReconnect=true
展示解决:显示连接成功