IDEA連接mysql報錯Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezone‘ prope解決

報錯界面 解決方法: 一、進入cmd(win+R),輸入mysql -uroot -p密碼,登陸mysql(前提是配置了mysql環境變量)。 二、輸入show variables like'%time_zone'; 出現下圖顯示的內容就是說明沒有設置時區 三、輸入set global time_zone = '+8:00'; 即可設置時區。 四、返回IDEA,再次連接數據庫,顯示成功連接。
相關文章
相關標籤/搜索