idea:Server returns invalid timezone Go to 'Advanced' tab and set 'serverTimezone' property manually

當你用IDEA連接MySQL數據庫時,出現異常如下圖: 原因: 服務器返回無效時區,轉到「高級」選項卡並手動設置「serverTimezone」屬性。 解決: 登錄mysql,命令行窗口錄入以下命令即可: show variables like ‘%time_zone%’; set global time_zone=’+8:00’; 解決後,測試連接即可解決!
相關文章
相關標籤/搜索