init start-h2

The init start-h2 subcommand starts the in-memory H2 database included in the Liquibase installation package to get started and test how Liquibase works.

If you run the liquibase init project command, you can use H2 only with one of the following options:

  • Creating the Liquibase project with the default values [Y].
  • Customizing the values [C] but keeping the default URL, username, and password.

The H2 database console opens automatically in a browser on port 9090 and requires a new command line or terminal window.

Running the init start-h2 subcommand

To start the H2 database, open a new terminal window and run the following command:

liquibase init start-h2

To continue running commands, use another terminal window.

Related links

For more information about using Liquibase and H2, see the following pages: