关于jdbc的url出现的几个错误

报错:

java.sql.SQLException: The server time zone value ‘???ú±ê×??±??‘ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

这是url出错然后报错,翻译不出来的就是中文字符,重新打一遍就行

java.sql.SQLSyntaxErrorException: Unknown database ‘javaweb&servertimezone = gmt‘

这是时区错误,url后面加点东西就行

con = DriverManager.getConnection("jdbc:mysql://localhost:3306/javaweb?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC",

java.sql.SQLSyntaxErrorException: Unknown database ‘javaweb&usessl=false&servertimezone=utc‘

这是url加上了没有用?隔开数据库报错

关于jdbc的url出现的几个错误

上一篇:Mysql 四种事务隔离级别


下一篇:Manifesto – HTML5 离线应用程序缓存校验工具