Mysql timezone on windows 7 not updated

我是研究僧i 提交于 2019-12-03 01:41:24

Solution:

For those who faced the same problem - here is what I found. I ran show variables like 'datadir' and found out that my data files are stored in a different folder:C:\ProgramData\MySQL\MySQL Server 5.5\data\

and I was replacing files in C:\Program Files... folder initially. There was also the needed files present.

So finally everything went fine.

Try:

SET GLOBAL time_zone = <timezone>;

I solved my problem by following this steps.

  • If your MySql 5.6 or below

download timezone_2016f_posix.zip from below link and unzip then replace all files to

e.g. yourDrive:\mysql\data\mysql

or

  • If your MySql 5.7+

download timezone_2016f_posix_sql.zip from below link and unzip then replace all files to

e.g. YourDrive:\mysql\data\mysql

You will get all of zip file from this link http://dev.mysql.com/downloads/timezones.html

Note: Your mysql data path will be changed depands on your mysql version or MySql setup or If you use XAMPP the your path will be like this yourdrive:\Xampp\mysql\data\mysql

Hope it will help

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!