MySQL JDBC URL

/ 数据库 / 0 条评论 / 251浏览

driver package

MySQL8

com.mysql.cj.jdbc.Driver

MySQL5

com.mysql.jdbc.Driver

JDBC URL

MySQL8

jdbc:mysql://localhost:3306/test?useSSL=false&serverTimezone=UTC

MySQL5

jdbc:mysql://localhost:3306/test?user=root&password=&useUnicode=true&characterEncoding=gbk&autoReconnect=true&failOverReadOnly=false