.
报错:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
解决方法:
看一下
url=jdbc:mysql://127.0.0.1:3306/smbms?useSSL=true
把useSSL=true 改为 false
更改后若是还有另一个报错!
报错:java.sql.SQLException: The server time zone value ‘?й???’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver
(环境:mysql-connector-java-8.0.20.jar)
解决方法:
添加serverTimezone=Asia/Shanghai
url=jdbc:mysql://127.0.0.1:3306/smbms?useSSL=true&serverTimezone=Asia/Shanghai