MySQL mysql_tzinfo_to_sql program

后端 未结 6 862
抹茶落季
抹茶落季 2021-01-05 15:10

I am using MySQL 5.0.51b on microsoft windows xp. I am trying to load data from zoneinfo files(generated by library downloaded from here) to database tables as described her

6条回答
  •  -上瘾入骨i
    2021-01-05 15:28

    The command "mysql_tzinfo_to_sql" doesn't work on Windows. You have to download the timezone packages wich contains SQL statements and populate the timezone tables using the "source" command, like this:

    mysql> use mysql ;
    mysql> source /path/to/file/timezone_posix.sql ;
    

    Check the following links for reference:

    Blog: https://discourse.looker.com/t/cannot-connect-time-zone-tables-dont-appear-to-be-loaded-in-mysql/208/6

    Scripts sql: http://downloads.mysql.com/general/timezone_2016a_posix_sql.zip , http://downloads.mysql.com/general/timezone_2016a_leaps_sql.zip

提交回复
热议问题