使用idea關聯mysql時報錯Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezon'

【解決方法】 第一種 時區錯誤,MySQL默認的時區是UTC時區,比北京時間晚8個小時。 所以要修改mysql的時長 使用cmd 找到mysql安裝目錄並進入bin文件夾 輸入 mysql -u root -p 然後輸入密碼,進入mysql命令模式 輸入 set global time_zone=’+8:00’; 再次連接成功 第二種 點擊Driver,切換MySQL for 5.1 接下來,會讓
相關文章
相關標籤/搜索