报错:
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加上了没有用?隔开数据库报错