1、查看mysql时区: > show variables like "%time_zone%"; 2、修改“my.cnf”文件 vim /etc/my.cnf 3、在[mysqld]中如下配置: default-time_zone = '+8:00' 4、重启MySQL即可;