美文网首页
mysql的time zone问题

mysql的time zone问题

作者: 小狼在IT | 来源:发表于2019-03-11 08:47 被阅读0次

    运行时出现类似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

    相关文章

      网友评论

          本文标题:mysql的time zone问题

          本文链接:https://www.haomeiwen.com/subject/nbzmpqtx.html