Check Current Database
To check the current database use the “db” command.
Check Current Database Example
The below image shows how to check current database using Mongo Shell.
MongoDB – Create Database using Mongo Shell
A MongoDB Database is the container for all the collections, where the Collection is a bunch of MongoDB documents similar to tables in RDBMS and the Document is made up of fields similar to a tuple in RDBMS, but it has a dynamic schema here.
This article explains the easy method to create a Database in MongoDB using Mongo Shell.