# Liquibase can't initiate a SQL Connection for a NoSql DB

**URL:** <https://forum.liquibase.org/t/liquibase-cant-initiate-a-sql-connection-for-a-nosql-db/7256>\
**Category:** General Discussion\
**Tags:** spring-boot, mongodb, error, nosql, creating-bean-with\
**Created:** [September 2, 2022, 3:33am UTC](https://forum.liquibase.org/t/liquibase-cant-initiate-a-sql-connection-for-a-nosql-db/7256 "2022-09-02T03:33:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nguyentrungkien](https://avatars.discourse-cdn.com/v4/letter/n/ecc23a/32.png) [@nguyentrungkien](https://forum.liquibase.org/u/nguyentrungkien)\
**Post date:** [September 2, 2022, 3:33am UTC](https://forum.liquibase.org/t/liquibase-cant-initiate-a-sql-connection-for-a-nosql-db/7256/1 "2022-09-02T03:33:32Z")

</div>

I’m a newbie. I’m trying to connect Liquibase with MongoDB in Spring Boot but getting some errors. I tried searching on google but had no success  
**Versions I’ve used**

```auto
java: 17
liquibase-mongodb: 4.15.0
liquibase-core: 4.15.0
mongodb-jdbc: 2.0.0
mongo-java-driver: 3.12.11
spring-boot-starter-jdbc: 2.7.3
spring-boot-starter: 2.7.2

```

**My config in application.properties file (I have disabled security in MongoDB)**

```auto
# mongo config
spring.datasource.driver-class-name=com.mongodb.jdbc.MongoDriver
spring.datasource.url=mongodb://localhost:27017/BuildingQueryService

# liquibase config
spring.liquibase.enabled=true
spring.liquibase.driver-class-name=liquibase.ext.mongodb.database.MongoClientDriver
spring.liquibase.change-log=classpath:database/changelog/changelog_master.xml
spring.liquibase.url=mongodb://localhost:27017/BuildingQueryService

```

**My change log file**

```auto
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd
        http://www.liquibase.org/xml/ns/dbchangelog-ext https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

    <changeSet id="1" author="loic">
        <ext:createCollection collectionName="Fruit"/>

        <ext:createIndex collectionName="Fruit">
            <ext:keys>{color: 1}</ext:keys>
            <ext:options>{name: "colorIdx"}</ext:options>
        </ext:createIndex>

        <ext:insertOne collectionName="Fruit">
            <ext:document>{"name":"orange", "color": "orange"}</ext:document>
        </ext:insertOne>
    </changeSet>

</databaseChangeLog>

```

**My error**

```auto
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException: Cannot initiate a SQL Connection for a NoSql DB

```

Can someone help me? Thanks a lot!

---

<div class="post-metadata">

**Author:** ![tabbyfoo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/tabbyfoo/32/748_2.png) [@tabbyfoo](https://forum.liquibase.org/u/tabbyfoo)\
**Post date:** [September 12, 2022, 8:21pm UTC](https://forum.liquibase.org/t/liquibase-cant-initiate-a-sql-connection-for-a-nosql-db/7256/2 "2022-09-12T20:21:44Z")

</div>

> [@nguyentrungkien](#):
>
> ```auto
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException: Cannot initiate a SQL Connection for a NoSql DB
> 
> ```

I found a StackOverflow post from a while back that has 6 accepted answers, each with a different way to resolve a similar issue. Did you try any of these answers? What was the result?

> <https://stackoverflow.com/questions/29711327/error-creating-bean-with-name-liquibase-defined-in-class-path-resource-co>
