查看時區
show variables like ‘%time_zone%’;
system_time_zone CST
time_zone SYSTEM
修改時區
set global time_zone=’+8:00’;
修改當前會話
set time_zone=’+8:00’;
刷新內存
flush privileges;
查看操作系統時區
UTC是協調世界時(Universal Time Coordinated)
GMT(Greenwich Mean Time)是格林尼治平時
CST卻同時可以代表如下 4 個不同的時區:
美國中部時間:Central Standard Time (USA) UT-6:00
澳大利亞中部時間:Central Standard Time (Australia) UT+9:30
中國標準時間:China Standard Time UT+8:00
古巴標準時間:Cuba Standard Time UT-4:00