MySQL Forums
Forum List  »  Newbie

Re: set default time zone
Posted by: Alex Sadykov
Date: April 23, 2009 10:01AM

from http://dev.mysql.com/doc/refman/5.0/en/time-zone-support.html

1. Download the timezone table structure and data from http://dev.mysql.com/downloads/timezones.html

2. Copy and paste the data in your Mysql/data/mysql folder

3. Restart your mysql server.

4. mysql> SET GLOBAL time_zone = 'America/Toronto';

5. mysql> SET SESSION time_zone = 'America/Toronto';

6. Check SELECT @ @global.time_zone , @ @session.time_zone ;
It should give you the time zone you set just before.

Options: ReplyQuote


Subject
Written By
Posted
April 23, 2009 07:29AM
Re: set default time zone
April 23, 2009 10:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.