I want to generate a SQL file from which I can generate my database. It works when I connect to the database but I want to do in offline mode. So I try this via command line:
.\liquibase --url=offline:mysql? `
--driver=org.mariadb.jdbc.Driver `
--classpath=C:/Users/Ferid/Downloads/mariadb-java-client-2.2.4.jar `
--changeLogFile=C:/Users/Ferid/Downloads/liquibase-3.5.5-bin/sdk/workspace/changelog/com/example/changelogTestCust.xml `
--outputFile=C:/Users/Ferid/Downloads/liquibase-3.5.5-bin/new2 `
updatesql
--driver=org.mariadb.jdbc.Driver `
--classpath=C:/Users/Ferid/Downloads/mariadb-java-client-2.2.4.jar `
--changeLogFile=C:/Users/Ferid/Downloads/liquibase-3.5.5-bin/sdk/workspace/changelog/com/example/changelogTestCust.xml `
--outputFile=C:/Users/Ferid/Downloads/liquibase-3.5.5-bin/new2 `
updatesql
When I do this it just generates a file like this:
-- *********************************************************************
-- Update Database Script
-- *********************************************************************
-- Change Log: C:/Users/Ferid/Downloads/liquibase-3.5.5-bin/sdk/workspace/changelog/com/example/changelogTestCust.xml
-- Ran at: 5/30/18 3:36 PM
-- Against: null@offline:mysql?
-- Liquibase version: 3.5.4
-- *********************************************************************
-- Update Database Script
-- *********************************************************************
-- Change Log: C:/Users/Ferid/Downloads/liquibase-3.5.5-bin/sdk/workspace/changelog/com/example/changelogTestCust.xml
-- Ran at: 5/30/18 3:36 PM
-- Against: null@offline:mysql?
-- Liquibase version: 3.5.4
-- *********************************************************************
This only happens when I try to generate it in offline mode so what am I doing wrong? I have tried it with offline mode for MySQL, Oracle and MSSQL and all give me this result.