Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Set timezone for MySQL
# Populate the Time Zone Tables from your system into the MySQL:
# @see
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
# In `/etc/mysql/my.cnf` add following line under [mysqld] config group:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment