Changing the connection timezone in MySQL

前端 未结 6 732
情话喂你
情话喂你 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:48

    Just for the sake of completeness, Mac users can find mysql_tzinfo_to_sql utility in /usr/local/mysql/bin directory.

    Hence the complete command will be /usr/local/mysql/bin/mysql_tzinfo_to_sql /usr/share/zoneinfo | ./mysql -p -u root mysql

    I spent hours to find the utility, the above path may save yours!

提交回复
热议问题