# Creating a MongoDB database with Liquibase

**URL:** <https://forum.liquibase.org/t/creating-a-mongodb-database-with-liquibase/10261>\
**Category:** Uncategorized\
**Created:** [March 4, 2025, 6:49pm UTC](https://forum.liquibase.org/t/creating-a-mongodb-database-with-liquibase/10261 "2025-03-04T18:49:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvindang](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@marvindang](https://forum.liquibase.org/u/marvindang)\
**Post date:** [March 4, 2025, 6:49pm UTC](https://forum.liquibase.org/t/creating-a-mongodb-database-with-liquibase/10261/1 "2025-03-04T18:49:21Z")

</div>

I have a MongoDB Atlas cluster Is there a way I can I create a MongoDB database in that cluster with Liquibase?

All I’ve seen is creating a collection within a MongoDB Atlas Cluster but not creating a MongoDB database. Does Liquibase support a feature like this?

---

<div class="post-metadata">

**Author:** ![mallod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/mallod/32/1191_2.png) [@mallod](https://forum.liquibase.org/u/mallod)\
**Post date:** [March 7, 2025, 4:43pm UTC](https://forum.liquibase.org/t/creating-a-mongodb-database-with-liquibase/10261/2 "2025-03-07T16:43:29Z")

</div>

Hi @marvindang,

I think a way you can try to achieve what you are looking for would by using `[runCommand](https://docs.liquibase.com/change-types/mongodb/run-command.html)` (or its alternative `[adminCommand](https://docs.liquibase.com/change-types/mongodb/admin-command.html)`, of course to run this change type successfully you have to be an administrator in MongoDB).

I hope it helps.

Thanks,  
Daniel.
