前几天重装系统,把开发需要的所有工具重新装了一遍,完事儿就关电脑嗨皮了。
今天新建项目连库运行后报如下错误:
mysql时区错误“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim”
错误信息:
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的时候时区设置的不正确,处理方式:
DOS登录数据库,执行下面两条命令:
mysql时区错误“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim”
第一条命令:show variables like ‘%time_zone%’;
mysql时区错误“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim”
第二条命令:set global time_zone=’+8:00’;
mysql时区错误“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim”
好了。
安装mysql时候默认的是美国的时区,而我们中国大陆要比他们迟8小时,采用+8:00格式

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2021-10-21
  • 2021-04-20
  • 2021-10-29
  • 2022-02-12
  • 2021-12-15
猜你喜欢
  • 2021-05-27
  • 2021-09-16
  • 2021-04-29
  • 2021-08-17
  • 2021-04-19
相关资源
相似解决方案