1. The old version, MySQL Connector / J 5.x versions of the connection:
url = jdbc:mysql://localhost:3306/thrcloud_db01?useUnicode=true&characterEncoding=utf8
driver-class-name = com.mysql.jdbc.Driver
2, connection after MySQL 8.x new version, MySQL Connector / J 6.x:
url = jdbc: MySQL: // localhost:? 3306 / thrcloud_db01 serverTimezone = UTC & characterEncoding = utf8 & useUnicode = to true & useSSL = false
Driver-class-name = com.mysql.cj.jdbc.Driver
Note: The new mysql driven url must set the time zone, namely serverTimezone = UTC, otherwise it will report the following error: