I just used mysql_tzinfo_to_sql to load the zoneinfo database into mysql. They all imported fine.
[root@db ~]# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql mysql
I have some questions that I can't seem to find answers for :
- Are the names in
time_zone_name
the same as those used in PHP? I am assuming PHP uses the same/usr/share/zoneinfo
information so the names would be the same as well right? - It mentions the tables need to be repopulated every now and then when timezone data changes. Is this when tzdata is updated though
yum
updates? Istzdata
my/usr/share/zoneinfo
information? - If the above is true, tzdata updates, and I need to repopulate my tables... how do I do that? Can I just run
[root@db ~]# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql mysql
again? Will that command overwrite the information that is currently there or do I need to manually delete all the table entries before doing so?
Thanks for any information on the above. So far the timezone names used in PHP seem to match up, but I have not looked into it further other than a few tests. As for the last two... I am just trying to get ahead of things so if/when the tables need updated I do not have trouble.