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

it2025-06-03  8

参考自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

最新回复(0)