java.sql.SQLException: The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone’ confi
问题:jdbc链接mysql时报错时区问题。
解决办法:
win+r 打开控制台,使用root账号登录mysql
输入命令查看当前时区配置。
show variables like '%time_zone%';
输入命令修改当前时区配置: set global time_zone=’+8:00’;
set global time_zone='+8:00';
再来运行java项目:问题完美解决。