使用JDBC连接MySql时出现:The server time zone value '�й���׼ʱ��' is unrecognized or represents more

使用JDBC连接MySql时出现: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错误   

该错误需要修改mybatis的配置文件中的 db.url 在最后添加字符串限制  如

db.url=jdbc:mysql://localhost:3306/mmall_learning?characterEncoding=UTF-8&serverTimezone=UTC

上一篇:python 报错之解决办法


下一篇:[Linux]Service mysql start出错(mysql: unrecognized service)解决方法