Created
March 7, 2018 05:26
-
-
Save webkod3r/f52ac3da1dd512054ce5e7d5e231059f to your computer and use it in GitHub Desktop.
Setting MYSQL time_zone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT @@global.time_zone, @@session.time_zone; | |
-- change the mysql server time zone | |
SET GLOBAL time_zone = '-05:00'; | |
set time_zone = '-05:00'; | |
-- other option to change the configuration | |
-- In the file "my.cnf" in the [mysqld] section | |
-- default-time-zone='-05:00' | |
select now(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment