一、mysql连接报错
mysql5.5 springboot2.0
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents
修改my.ini
搜索[mysqld]节点在节点下面加上下面这句话
default-time-zone='+08:00'
然后记得重启MySQL的服务,打开cmd窗口登录MySQL执行show variables like '%time_zone%';这句命令
其他方法就是修改连接的url
&serverTimezone=UTC
jdbc:mysql://localhost:3306/spring_boot?serverTimezone=GMT+8