Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4466

MySQL TimeZone Configuration

$
0
0

Given:

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:

  1. How can one verify / test that the time zone tables were loaded (first command)
  2. How does one confirm it is necessary to account for leap seconds and perform the second command?

Viewing all articles
Browse latest Browse all 4466

Trending Articles