I use liquibase 3.6.1 to work with Mysql database. I use the lib "mysql-connector-java-6.0.2.jar", I got the below error when using diff command:
Exception in thread "main" java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/mysql/cj/jdbc/Driver, offset=6
When I tried the lib "mysql-connector-java-5.1.21.jar", I got another error:
Unexpected error running Liquibase: java.lang.RuntimeException: Cannot find data base driver: com.mysql.cj.jdbc.Driver
My command is:
liquibase --referenceUrl=jdbc:mysql://10.53.x.x/mydb --referenceUsername=user --referencePassword=pass
Are there anyone can help ?