选进入到Mysql执行如下语句:
mysql> set global time_zone = '+08:00';
mysql> set time_zone = '+08:00';
然后重启数据库服务器:
/usr/local/mysql/support-files/mysql.server stop usr/local/mysql为MySQL的安装路径
/usr/local/mysql/support-files/mysql.server stop
选进入到Mysql执行如下语句:
mysql> set global time_zone = '+08:00';
mysql> set time_zone = '+08:00';
然后重启数据库服务器:
/usr/local/mysql/support-files/mysql.server stop usr/local/mysql为MySQL的安装路径
/usr/local/mysql/support-files/mysql.server stop