MySQL JDBC URL

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