1.url: jdbc:mysql://192.168.0.101:3306/testdb?serverTimezone=UTC,在连接字符后面添加时区设置

2.使用navicat或者直接使用mysql命令行:

 查看:show variables like '%time_zone%';

 设置:set global time_zone='+8:00';

    或者(在navicat中手动经+8:00填进去即可)

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2021-12-03
  • 2021-11-07
  • 2021-07-02
  • 2022-01-18
  • 2021-09-02
猜你喜欢
  • 2021-12-05
  • 2021-04-21
  • 2021-06-29
  • 2022-02-14
  • 2021-10-08
  • 2022-12-23
  • 2021-12-31
相关资源
相似解决方案