How do I set the time zone of MySQL?

后端 未结 20 3280
闹比i
闹比i 2020-11-21 07:07

On one server, when I run:

mysql> select now();
+---------------------+
| now()               |
+---------------------+
| 2009-05-30 16:54:29 |
+---------         


        
20条回答
  •  甜味超标
    2020-11-21 07:29

    Simply run this on your MySQL server:

    SET GLOBAL time_zone = '+8:00';
    

    Where +8:00 will be your time zone.

提交回复
热议问题