I did run this query to genereate changelogFile in .sql format
liquibase --driver=com.mysql.jdbc.Driver --classpath=mysql-connector-java-5.1.24-bin.jar --changeLogFile=test_diff.sql --url="jdbc:mysql://localhost/provision" --username=root --password=** diffChangeLog --referenceUrl=jdbc:mysql://localhost/provision_old --referenceUsername=root --referencePassword=***
I get following error
Liquibase Update Failed: No serializer associated with the filename or extension 'sql' SEVERE 5/2/13 12:50 PM:liquibase: No serializer associated with the filename or extension 'sql' java.lang.RuntimeException: No serializer associated with the filename or extension 'sql'
Is it possible to generate changelogfile in .sql formate?
It is a file that contains a record of all your database changes (changesets). Liquibase uses this changelog record to audit your database and execute any changes that are not yet applied to your database.
The changeset tag is a unit of change that Liquibase executes on a database and which is used to group database Liquibase Change Types together. A list of changes created by multiple changesets are tracked in a changelog.
Liquibase (LB) is an open source tool written in Java. It makes defining database changes easy, in a format that's familiar and comfortable to each user. Then, it automatically generates database-specific SQL for you. Database changes (every change is called changeset) are managed in files called changelogs.
Add param:
--changeLogFile=fileName.databaseType.sql
This is my worked sample (liquibase 3.6.3):
liquibase.bat^
--changeLogFile=databaseChangeLog.oracle.sql^
--driver=oracle.jdbc.OracleDriver ^
--url=jdbc:oracle:thin:@//localhost:1521/orcl ^
--username=uat ^
--password=uat ^
diffChangeLog ^
--referenceDriver=oracle.jdbc.OracleDriver ^
--referenceUrl=jdbc:oracle:thin:@//localhost:1521/orcl ^
--referenceUsername=test ^
--referencePassword=test ^
Try with this param:
--changeLogFile="./changelog.mysql.sql"
Can refer here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With