查看数据库时区:
show variables like "%time_zone%";
修改全局会话时区:
set time_zone = '+8:00';
set global time_zone = '+8:00';
flush privileges;
查看数据库时区:
show variables like "%time_zone%";
修改全局会话时区:
set time_zone = '+8:00';
set global time_zone = '+8:00';
flush privileges;