mysql is not using the correct timezone in a windows server -


i'm having weird issue on timezone used mysql server running on windows server 2012

things have done:

  1. set default timezone in my.ini file, in case default-time-zone=america/chicago
  2. ensure i'm using actual ini file
  3. check timezone variable used mysql system
  4. loaded timezone tables mysql data folder, cause read in windows tables aren't there default
  5. check server actual time correctly set utc-06:00, same time chicago
  6. run select now() statement

the last item in list returning me different time, 5 hours ahead, 1 thing when restart server time timezone correctly set chicago time, after few days, got incorrect one, 5 hours ahead.

i have no idea why happening, maybe can me this, thanks!

after establishing mysql connection please run query.

set session time_zone = 'america/chicago' 

Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -