时间:2021-07-01 10:21:17 帮助过:4人阅读
MySql5.x升级MySql8.x非常简单,一般来说只需要操作两个步骤即可
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.18</version>
</dependency>
com.mysql.cj.jdbc.Driver
# 设定时间为东八区
serverTimezone=GMT%2B8
# 完整url
String url="jdbc:mysql://"+dbHost+":"+dbPort+"/"+dbName+"?"
+ "serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8"
+ "&port="+dbPort+"&autoReconnect=true";
MySql5.x升级MySql8.x
标签:cti host 指定 block mysql server auto pen artifact