报错:java.sql.SQLException: The server

报错:java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized

在IDEA运行是报出例如相识的错误时:

  1. java.sql.SQLException: 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.

报错:java.sql.SQLException: The server

那么此时查看你的mysql依赖是否版本过高:

报错:java.sql.SQLException: The server

这时将它降到6以下试试,楼主降到5.1.45就OK了

报错:java.sql.SQLException: The server

上一篇:WPF查找子控件和父控件方法


下一篇:dea创建Maven工程用c3p0连接数据库报错java.sql.SQLException: Connections could not be acquired from the underlying