PHPStorm連接MySql時提示錯誤:java.sql.SQLException: The server time zone value ‘xx time’ is unrecognized

PHPStorm連接MySql時提示錯誤:java.sql.SQLException: The server time zone value ‘xx time’ is unrecognized

解決方案:

1.找到MySQL的配置文件,my.ini或者my.cnf,一般在MySQL的安裝目錄下面;

   然後爲default time zone賦值,如下圖,保存後,重啓MySQL, PHPStorm就可以成功連接了;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章