idea连接mysql保存 我淦

Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' prope

简单粗暴 淦!!

win+R cmd

(提前配置mysql环境变量,就不告诉你怎么配)

mysql -hlocalhost -uroot -p

输入密码登录

 show variables like’%time_zone’;

mysql配置时区 serverTimeZone

set global time_zone = '+8:00';

 show variables like’%time_zone’;

mysql配置时区 serverTimeZone

解决。

 

相关文章:

  • 2021-12-20
  • 2022-01-13
  • 2022-01-06
  • 2021-04-11
  • 2021-12-06
  • 2022-01-09
  • 2021-09-05
猜你喜欢
  • 2022-01-17
  • 2022-02-04
  • 2021-12-28
  • 2021-11-20
  • 2021-07-29
  • 2022-12-23
  • 2022-02-23
相关资源
相似解决方案