pycharm裏鏈接數據庫報錯Server returns invalid timezone. Go to Advanced tab and setserverTimezone

翻譯過來就是:服務器返回無效時區。進入「高級」選項卡,手動設置「serverTimezone」屬性   其實就是時區出問題了 解決方案 連接數據庫 mysql -hlocalhost -uroot -p 繼續輸入 show variables like'%time_zone';    如圖(我的已經設置完了,沒設置不是這樣的): 來設置時區: 輸入:set global time_zone = '
相關文章
相關標籤/搜索