转自:https://blog.youkuaiyun.com/weixin_39033443/article/details/81711306
用DBUtil连数据库的时候一直报错,网页加载一直500,以为用户没有给权限,结果弄了一下午。
报错:The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one
只要这2句就行了
show variables like ‘%time_zone%’;
set global time_zone=’+8:00’;
另外还要提醒自己
数据库url是localhost:3030+数据库名字
user 用户是lin
password 密码是123