Some background:
I have a Java 1.6 webapp running on Tomcat 7. The database is MySQL 5.5. Previously, I was using Mysql JDBC driver 5.1.23 to connect to the DB. Ever
If you are using Maven, you can just set another MySQL connector version (I had the same error, so i changed from 6.0.2 to 5.1.39) in pom.xml
:
mysql
mysql-connector-java
5.1.39
As reported in another answers, this issue has been fixed in versions 6.0.3 or above, so you can use the updated version:
mysql
mysql-connector-java
6.0.3
Maven will automatically re-build your project after you save the pom.xml
file.