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

问题描述
在最近的工作中遇到一个问题,使用IDEA连接Mysql时,遇到了一个问题,下面是问题及,解决方法
Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezone‘ prope

下面是操作步骤
点击这个小扳手
Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezone‘ prope
点击Advnced,将-Duser.timezone=Asia/Shanghai粘贴到这里
Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezone‘ prope
刷新数据库连接,问题解决.