I’m trying to run liquibase with MySQL and MongoDB instance. But when I try run the connection is failing with:
[ERROR] Error setting up or running Liquibase:
[ERROR] liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Could not open connection to database: UNKNOWN: The connection string contains an invalid host ‘:’. The port ‘’ is not a valid, it must be an integer between 0 and 65535
My maven profile I am running is:
`
liquibase-update
<liquibase.should.run>true</liquibase.should.run>
process-resources
org.liquibase
liquibase-maven-plugin
4.3.1
<dependencies>
<dependency>
<groupId>org.liquibase.ext</groupId>
<artifactId>liquibase-mongodb</artifactId>
<version>4.3.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>db1-update</id>
<phase>process-resources</phase>
<goals>
<goal>update</goal>
</goals>
<configuration>
<logging>info</logging>
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
<changeLogFile>./scripts/database/liquibase/changelogs/master-changelog.xml</changeLogFile>
<driver>com.mysql.jdbc.Driver</driver>
<url>${jdbc.url}</url>
<username>${jdbc.username}</username>
<password>${jdbc.password}</password>
</configuration>
</execution>
<execution>
<id>db2-update</id>
<phase>process-resources</phase>
<goals>
<goal>update</goal>
</goals>
<configuration>
<logging>info</logging>
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
<changeLogFile>./scripts/database/liquibase/mongo-changelogs/mongo-master-changelog.xml</changeLogFile>
<driver>org.mongodb.mongodb-driver-sync</driver>
<url>${mongo.url}</url>
<username>${mongo.username}</username>
<password>${mongo.password}</password>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>`
Is liquibase able to run with a SQL and noSQL database like this or is my configuration wrong?
Thanks