tags:

views:

407

answers:

2

on one server,when I run:

mysql> select now();
+---------------------+
| now()               |
+---------------------+
| 2009-05-30 16:54:29 | 
+---------------------+
1 row in set (0.00 sec)

on another server:

mysql> select now();
+---------------------+
| now()               |
+---------------------+
| 2009-05-30 20:01:43 | 
+---------------------+
1 row in set (0.00 sec)
+1  A: 

To set it for the current session, do:

SET time_zone = timezonename;
James Skidmore
thanks,and how to check current timezone?
Shore
SELECT @@session.time_zone;
James Skidmore
+1  A: 
Alex Martelli