Given:
- 22.04 / Eastern Time zone (New York)
- Instructions: https://github.com/curzon01/mqtt2sql#mysql-prerequisites
The instructions indicate:
In order for MySQL to handle time zones correctly, make sure thatthe MySQL Server Time Zone Support is set up correctly (see alsoPopulating the Time Zone Tables).
I loaded time-zone tables:
user@mysql:/usr/share/zoneinfo$ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
and am not sure if the time zone must account for leap seconds :
user@mysql:/usr/share/zoneinfo$ mysql_tzinfo_to_sql --leap tz_file | mysql -u root -p mysql
Questions:
- How can one verify / test that the time zone tables were loaded (first command)
- How does one confirm it is necessary to account for leap seconds and perform the second command?