使用JDBC连接数据库时,报错: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后面加上?serverTimezone=UTC,即jdbc:mysql://localhost:3306/mysql_test?serverTimezone=UTC
比较全的:jdbc:mysql://localhost/mysql_text?useUnicode=true&characterEncoding=utf-8&relaxAutoCommit=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=UTC
原文链接:https://blog.csdn.net/jisuanjiguoba/article/details/100014214