使用IntelliJ IDEA自带的Database连接Mysql数据库时报错

报错提示Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.

表示时区设置错误,这时候在url后加上serverTimezone=UTC即可解决。如图

使用IntelliJ IDEA自带的Database连接Mysql数据库时报错