[mysql时区错误]The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim

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.

安装时默认为美国时区,需要改为东八区
如果希望利用时区支持,必须配置服务器或JDBC驱动程序
(通过serverTimezone配置属性)以使用更特殊的时区值。

时区错误解决方法

法一:打开mysql数据库

mysql> set global time_zone='+8:00';

法二:打开,在数据库连接配置中设置serverTimezone

connectionURL="jdbc:mysql://localhost:3306/arth-747bar-dev?useSSL=false&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8"

你可能感兴趣的:(mysql,mysql时区错误,serverTimezone,日常BUG收集)