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

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

问题原因:时间问题原因

这时打开你window命令端

输入:mysql -u root -p

输入:show variables like'%time_zone' ;

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

这时你就可以到idea连接了

猜你喜欢

转载自blog.csdn.net/realize_dream/article/details/105464292