(1)vi /etc/my.cnf 在[mysqld]区域中加上在 default-time_zone = '+8:00'
(2)重启mysql whereis systemctl 找到systemctl的位置,执行/usr/bin/systemctl restart mysqld.service
(3)查看mysql状态 service mysqld status
(4)登陆mysql 查看 show VARIABLES like '%time_zone%' 发现time_zone的value已经由System变成+08:00
web服务器与mysql服务器时间相差13个小时解决方案
最新推荐文章于 2022-05-09 12:02:54 发布