在使用pycharm DataBase模块连接mysql 时报错Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezon’
- 原因:服务器返回无效时区。mysql默认的时区是UTC时区,比北京时间晚
8
个小时。 - 所以修改如下
- set global time_zone=’+8:00’;
在使用pycharm DataBase模块连接mysql 时报错Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezon’
8
个小时。