自己用Django开发个人博客是,数据库用的是mysql,期间遇到一个时间不一致的问题,具体解决过程:

1、问题原因:Windows没有时区表

2、去mysql官网下载相应版本的时区表:https://www.oracle.com/search/results?cat=mysql&Ntk=SI-ALL5&Ntt=mysql_tzinfo_to_sql

3、https://dev.mysql.com/doc/refman/8.0/en/mysql-tzinfo-to-sql.html

mysql--时区表问题(Windows环境下)

 

 4、https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html

mysql--时区表问题(Windows环境下)

 

 完毕!

 

相关文章:

  • 2022-03-06
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-10-24
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2021-04-19
  • 2022-01-14
  • 2021-12-09
  • 2021-12-16
  • 2021-09-14
  • 2022-02-23
相关资源
相似解决方案