查看当前mysql时区 并设置为北京时间
时间:2020-08-17 08:22:40
收藏:0
阅读:318
(1)查看当前时区 正确的应该是CST
show variables like ‘%time_zone%‘;
(2)如果不是CST,需要修改配置文件 /etc/my.cnf
在[mysqld]中 添加
default-time-zone=‘+08:00‘
最后: 只需完成这两步操作 ,此时查看MySQL 北京时间正确配置
原文:https://www.cnblogs.com/pzyin/p/13515252.html
评论(0)