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’;
错误即可解决