mysql时区配置
root test>show global variables like '%time_zone%';
+------------------+--------+
| Variable_name | Value |
+------------------+--------+
| system_time_zone | CST |
| time_zone | SYSTEM |
+------------------+--------+
mysqldump导出-w带时间条件切记要核对导出结果条数和记录!!!mysqldump默认会使用0时区导出。
SET TIME_ZONE='+00:00'
写得有点简单,仅提醒自己要注意!!!
Comments