在最近学习mysql中遇到The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone
这个问题
原因:出现这个错误是由于时区不对
解决方案:
1,按win+R 输入 cmd , 登录进入自己的电脑上已经安装好的数据库(mysql -u root -p ),然后输入密码
2,进入数据库之后,输入 show variables like '%time_zone%'; 3,出现如下图: ![在这里插入图片描述](https://img-blog.csdnimg.cn/03b23f4afa6d426eabf785b0a827ab6a.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBA5ZG15ZG1dXA=,size_20,color_FFFFFF,t_70,g_se,x_16) 4,接着在输入
set global time_zone=‘+8:00’;
5,OK,成功