I have installed mysql in my linux server. My server timezone is UTC but mysql timezone in EDT. Now i want to change mysql timezone to UTC.
when i run date in linux command, it shows Fri Nov 6 09:25:01 UTC 2015
when i run select now() in mysql,it shows 2015-11-06 04:25:26.
So how to change EDT to UTC in mysql.
Note : i m using mysql workbench.
Set you MySQL timezone :-
SET GLOBAL time_zone = '+8:00';
SET GLOBAL time_zone = 'Europe/Helsinki';
SET @@global.time_zone='+00:00';
For check timezone :-
SELECT @@session.time_zone;
location of MySQL configuration file :-
/etc/mysql/my.cnf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With