⚡ idea连接MySQL数据库 原因 时区问题,MySQL驱动默认UTC时区。 解决方案 修改时区 # 设置全局时区 mysql> set global time_zone = '+8:00'; Query OK, 0 rows affected