Show list of Databases
To check currently selected database, use the command “show dbs“.
Show List of Databases Example
The below example shows how to see list of databases 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.
Contact Us