Changing the connection timezone in MySQL

前端 未结 6 749
情话喂你
情话喂你 2020-12-28 14:07

My server is running in MDT

So I used following one to convert EST

SET  time_zone = \'-5:00\'

But, how c

6条回答
  •  灰色年华
    2020-12-28 14:50

    For me on Windows using WampServer:

    • download the POSIX version from https://dev.mysql.com/downloads/timezones.html
    • unzip it
    • put all files in wamp mysql data: C:\wamp\bin\mysql\mysql5.7.11\data\mysql
    • restart wamp

    More Info:

    “To use a time zone package that contains .frm, .MYD, and .MYI files for the MyISAM time zone tables, download and unpack it. These table files are part of the mysql database, so you should place the files in the mysqlsubdirectory of your MySQL server's data directory. Stop the server before doing this and restart it afterward”

    http://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html#time-zone-installation

提交回复
热议问题