mysql的time zone问题

2019-03-11  本文已影响0人  小狼在IT

运行时出现类似bug:
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时,加上serverTimezone=Asia/Shanghai即可

image.png
上一篇 下一篇

猜你喜欢

热点阅读