2020/01/07

DataGrip JDBC連接MySQL錯誤

今天再用DataGrip連接MySQL資料庫時發生了錯誤
The specified database user/password combination is rejected: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'unknown' is unrecognized or represents more than one time zone. 
You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.





原本配置如下

該錯誤指向Time Zone問題

將URL後面加上
?serverTimezone=Asia/Taipei
就修正這問題了