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

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