Guest User

Untitled

a guest
Jan 10th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. --default-time-zone=timezone
  2.  
  3. --default-time-zone='timezone'
  4.  
  5. SET GLOBAL time_zone=timezone;
  6.  
  7. SET time_zone=timezone;
  8.  
  9. SELECT @@global.time_zone, @@session.time_zone;
  10.  
  11. SELECT CONVERT_TZ('2012-06-07 12:00:00', 'GMT', 'America/New_York');
  12.  
  13. mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
  14.  
  15. USE mysql;
  16. SELECT * FROM `time_zone_name`;
  17.  
  18. TRUNCATE `time_zone` ;
  19. TRUNCATE `time_zone_leap_second` ;
  20. TRUNCATE `time_zone_name` ;
  21. TRUNCATE `time_zone_transition` ;
  22. TRUNCATE `time_zone_transition_type` ;
  23.  
  24. mysql_config_editor set --login-path=client --host=localhost --user=root --password
  25.  
  26. [client]
  27. user=root
  28. password=yourMysqlRootPW
  29.  
  30. set time_zone = '-6:00';
  31.  
  32. --default-time-zone=timezone
  33.  
  34. --default-time-zone='timezone'
  35.  
  36. SET GLOBAL time_zone=timezone;
  37.  
  38. SET time_zone=timezone;
  39.  
  40. SELECT @@global.time_zone, @@session.time_zone;
Add Comment
Please, Sign In to add comment