在my.ini配置文件并打开,在文件中找到下图位置并加上下面这一行,default-time-zone=‘+8:00‘
default-time-zone=‘+8:00‘
IDEA中连接数据库测试出现设置时区问题
原文:https://www.cnblogs.com/mathum/p/14527697.html