mysql时区错误问题及命令行登录mysql方法

spring boot运行报错误信息“The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone”

解决方法:

1.先命令行登录mysql:

    管理员打开cmd,输入net start mysql

mysql时区错误问题及命令行登录mysql方法

    然后切换到mysql的bin目录,输入mysql -hlocalhost -uroot -p

mysql时区错误问题及命令行登录mysql方法

2.就可以改时区了

mysql运行报The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone的解决方法

mysql时区错误问题及命令行登录mysql方法