releaseLocks removes the specific Liquibase lock record from the DATABASECHANGELOGLOCK table in the needed database.


releaseLocks is typically used when there is an interruption with the Liquibase process during deployment resulting from the DATABASECHANGELOGLOCK table being in a locked state.

Running the releaseLocks command

To run the releaseLocks command, you can specify the driver, classpath, and URL in your file. You can also specify these properties in your command line.

Then run the releaseLocks command:

liquibase --changeLogFile=mainchangelog.xml releaseLocks

Note: Enter the name of the changelog you want to use in place of mainchangelog.xml. You can also add the changeLogFile to your file.

releaseLocks global attributes

Attributes Definition Requirement
--changeLogFile The root changelog Required
--username The database username Required
--password The database password Required
--url The JDBC database connection Required

Note: The username and password attributes are not required for connections and systems which use alternate means of authentication.