Mysql8.0.16 連接包報錯解決方法

Mysql8.0.16 連接包報錯解決方法

Mysql8.0 .16連接包報錯:
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…

從錯誤即可知道是時區的錯誤,因此只要將時區設置爲你當前系統時區即可, 因此使用root用戶登錄mysql,按照如下圖所示操作即可。
在這裏插入圖片描述 我電腦的系統爲北京時區,因此在系統中設置後,再連接數據庫運行,一切OK!