一些背景:
我有一个运行在Tomcat 7上的Java 1.6 web应用程序。数据库是MySQL 5.5。之前,我使用Mysql JDBC驱动程序5.1.23连接到数据库。一切正常。最近我升级到了Mysql JDBC驱动程序5.1.33。升级后,当启动应用程序时,Tomcat会抛出以下错误。
WARNING: Unexpected exception resolving reference
java.sql.SQLException: The server timezone value 'UTC' is unrecognized or represents
more than one timezone. You must configure either the server or JDBC driver (via
the serverTimezone configuration property) to use a more specifc timezone value if
you want to utilize timezone support.
为什么会发生这种情况?