Skip to content
letterletter edited this page Oct 12, 2018 · 1 revision

mysql 8.0.12, jdbc连接问题

1.The server time zone value '???ú±ê×??±??' is unrecognized or represents more than one time zone. 解决 String _URL = "jdbc:mysql://localhost:3305/xxxxdb?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false"; String _dataBaseDriver = "com.mysql.cj.jdbc.Driver"; Class.forName(_dataBaseDriver)//驱动名注意中间多了cj

Clone this wiki locally