使用Datagrip连接MySQL数据,用户名和密码正确的情况下,出现以下问题:
java.lang.RuntimeException: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'Öйú±ê׼ʱ¼ä' 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.
解决方法,点击 Driver: MySQL -> Go to Driver
选择MySQL驱动为 com.mysql.jdbc.Driver,驱动版本为5.x.x。