记录一下,我就知道。
进入mysql操作:
//查询时间
select now();
select sysdate();
//查询时区
show variables like "%time_zone%";
//更改时区
1、修改mysql配置文件
default-time_zone = '+8:00'
2、
SET GLOBAL time_zone = '+8:00';
flush privileges; //或者重启mysql也行
//查询时间
select now();
select sysdate();
//查询时区
show variables like "%time_zone%";
//更改时区
1、修改mysql配置文件
default-time_zone = '+8:00'
2、
SET GLOBAL time_zone = '+8:00';
flush privileges; //或者重启mysql也行