问题描述
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数据库配置,需要DBA的root权限
使用root用户登录mysql
mysql -u root -p
–查看时区值
show variables like '%time_zone%';
–设置为东八区(北京时间)
set global time_zone='+8:00';

原文链接god with us的博客
本文解决了一个IDEA连接MySQL数据库时出现的时区问题,详细描述了如何通过修改数据库时区设置来解决‘йʱ’不被识别的问题,确保数据库时区与项目配置时区一致。
1213

被折叠的 条评论
为什么被折叠?



