SQLException: The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more tha

参考自https://blog.csdn.net/weixin_38888926/article/details/89476144

idea报错:

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 specific time zone value if you want to utilize time zone support.
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)

在这里插入图片描述
解决方法:url后添加 ?serverTimezone=GMT%2B8
在这里插入图片描述
在这里插入图片描述