NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.11k stars 14.15k forks source link

nixos/mysql: Import tzdata to MySQL database #30727

Open jtojnar opened 7 years ago

jtojnar commented 7 years ago

Currently, the timezone data need to be installed manually using mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql and repeat each time tzdata is updated. It would be nice to have it done as a part of the NixOS module.

CMCDragonkai commented 7 years ago

There are subtle complexities with doing this. I wrote about it here: https://gist.github.com/CMCDragonkai/89ef22a2635dea63d1874a1138253170

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
DavidOliver commented 1 year ago

In NixOS, in which /usr/share/zoneinfo does not exist:

mysql_tzinfo_to_sql /etc/zoneinfo | mysql -u root mysql