0
点赞
收藏
分享

微信扫一扫

You must configure either the server or JDBC driver(errorCode 0, state 01S00)

错误信息

在开发时遇到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.

You must configure either the server or JDBC driver(errorCode 0, state 01S00)_错误解决办法

错误原因分析

在数据连接字符串后面加上未设置标准时间?

错误解决办法

在数据连接字符串中增加?serverTimezone=UTC(其中UTC是统一标准世界时间)。问题解决

总结

本文章是通过增加连接字符串解决,也可以修改数据的区时解决,这里就不说讲了
欢迎交流!

授人以鱼不如授人以渔...



举报

相关推荐

0 条评论