mysql连接使用了serverTimezone还是报错:The server time zone value ' ' is unrecognized or represents more than one time zone解决方案
问题背景
数据库连接使用了serverTimezone属性还是报错:Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value ’ ’ is unrecognized or represents more than one time zone
Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: 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
解决方案
1 仔细查看了一番,原来是serverTimezone写成了severTimezone,少写了一个r,硬是没看出来
总结
- 手动打的时候一样要注意
作为程序员第 173 篇文章,每次写一句歌词记录一下,看看人生有几首歌的时间,wahahaha …