Mysql5.7为什么测试时会报Server time zone不匹配的错误
测试时报The server time zone value '这部分内容是乱码' is unrecognized or represents more than one time zone
为了解决这个问题,从网上找到要把url=jdbc:mysql://localhost:3306/seckill?useUnicode=true$characterEncoding=utf8
改为
url=jdbc:mysql://localhost:3306/seckill?serverTimezone=UTC
就可以正常运行了,这是怎么回事?