MongoDB is a powerful open-source NoSQL databases, that is commonly used in the modern web applications.
The databases in MongoDB can be listed from the command-line using the mongo
shell and in this short note i will show how to do this.
Cool Tip: To connect to a remote MongoDB server from the command-line, it needs to install MongoDB command-line client, known as mongo
shell! Read More →
List Databases in MongoDB
To show all databases in MongoDB, execute the following command in the mongo
shell:
> show dbs
– or –
> show databases
To use (open) the database, run:
> use <databaseName>