1、时区错误

异常信息为: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.

时区的错误,因此只要将时区设置为你当前系统时区即可

打开cmd执行命令登录MySQL

mysql -u root -p

执行命令:

show variables like '%time_zone%';

会出现

MySQL 异常:时区错误

执行修改命令:

set global time_zone='+8:00';

MySQL 异常:时区错误

或者直接将 url改为:

"jdbc:mysql://localhost:3306/shiro_test?serverTimezone=GMT%2B8"

执行退出命令:

exit

MySQL 异常:时区错误

重新登录执行命令:

show variables like '%time_zone%';

MySQL 异常:时区错误

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-09-08
  • 2021-08-16
  • 2021-06-28
  • 2021-08-12
  • 2022-01-08
猜你喜欢
  • 2021-11-02
  • 2022-12-23
  • 2021-06-08
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案