Skip to content

Instantly share code, notes, and snippets.

@webkod3r
Created March 7, 2018 05:26
Show Gist options
  • Save webkod3r/f52ac3da1dd512054ce5e7d5e231059f to your computer and use it in GitHub Desktop.
Save webkod3r/f52ac3da1dd512054ce5e7d5e231059f to your computer and use it in GitHub Desktop.
Setting MYSQL time_zone
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