MySQL 时区
查看当前会话时区
SELECT @@session.time_zone;
设置当前会话时区
SET time_zone = 'Europe/Helsinki';
SET time_zone = "+00:00";
数据库全局时区设置
SELECT @@global.time_zone;
设置全局时区
SET GLOBAL time_zone = '+8:00';
SET GLOBAL time_zone = 'Europe/Helsinki';
SELECT @@session.time_zone;
SET time_zone = 'Europe/Helsinki';
SET time_zone = "+00:00";
SELECT @@global.time_zone;
SET GLOBAL time_zone = '+8:00';
SET GLOBAL time_zone = 'Europe/Helsinki';