Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Run Migrator pulling changelogs from a .JAR file (Spring boot)

$
0
0
Excellent - seeing what you actually did and what errors happened is super helpful. 

The problem you are habing now is because the mysql driver jar is not on the classpath. You would need to do something like this:

java -jar liquibase.jar --driver=com.mysql.jdbc.Driver --classpath=myapplication.jar;mysqldriver.jar --changeLogFile=/liquibase/current-changelog.xml  --url=jdbc:mysql://localhost/liquibase --username=root --password=root updateSQL > /tmp/script.sql

Inside your myapplication.jar, I think you would need to have (root)/liquibase/current-changelog.xml

Solving the first problem will get you further and may reveal other issues. 


Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>