由于mysql8 默认是UTC 所以比中国早了8小时.
set global time_zone = '+8:00';
set time_zone = '+8:00';
flush privileges;
show variables like "%time_zone%";
由于mysql8 默认是UTC 所以比中国早了8小时.
set global time_zone = '+8:00';
set time_zone = '+8:00';
flush privileges;
show variables like "%time_zone%";