You must configure either the server or JDBC driver (via the serverTimezone configuration property)

Django连接数据库时突然报错You must configure either the server or JDBC driver (via the serverTimezone configuration property)

如图:
在这里插入图片描述

这是时区问题报错
进入mysql命令行,输入set global time_zone=’+8:00’;
在这里插入图片描述

错误即可解决

posted @ 2020-07-28 16:55  336699强强  阅读(196)  评论(0编辑  收藏  举报