查看 設置mysql時區

# 查看時區spa

show variables like '%time_zone%';操作系統

system_time_zone CST
time_zone SYSTEM

 

 

 

# 設置全局table

set global time_zone='+8:00'; date

# 設置當前會話rsa

set time_zone='+8:00'; float

# 當即生效im

flush privileges;nw

 

# 查看操做系統時區tab

timedatectldi

 

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

相關文章
相關標籤/搜索