mysql time zone时区的错误解决

错误提示:

The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone

cmd下输入如下命令进行操作:
//登录
mysql -u root -p

//查看mysql系统时间。和当前时间做对比
select now();

//查看系统时区
show variables like ‘%time_zone%’;

// 设置时区,更改为东八区
set global time_zone = ‘+8:00’;

// 刷新权限
flush privileges;

转自:https://www.cnblogs.com/arxive/p/10332254.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章