很多小伙伴用idea连接数据库出现错误:Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually. 

问题原因:时间问题原因

这时打开你window命令端

输入:mysql -u root -p

输入:show variables like'%time_zone' ;

idea连接MySQL数据库,报错解决只需要两步

输入:set global time_zone='+8:00';

idea连接MySQL数据库,报错解决只需要两步

这时你就可以到idea连接了

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2021-04-21
  • 2021-05-10
  • 2021-03-26
  • 2021-12-15
  • 2021-04-01
猜你喜欢
  • 2021-05-04
  • 2021-08-11
  • 2022-12-23
  • 2021-05-31
  • 2021-12-11
  • 2021-04-16
  • 2022-01-21
相关资源
相似解决方案