赞
踩
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' configuration property) to use a more specifc time zone value if you want to utilize time zone support.
该错误是由于MySQL的默认时区为UTC,该时区比北京时间晚8小时,所以应该将MySQL默认时间加8小时。
下面代码用于查看MySQL默认时区
show variables like '%time_zone%';
set global time_zone='+8:00';
点开Database
右键已经建好的数据库,点击Properties
点击最右侧Advanced
找到Name为serverTimezone,将后面的Value改为GMT
点击Apply点击OK
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。