MongoDB show databases

Use show dbs command from mongo shell to list all the available databases on MongoDB server. This will show the database name with there size.

rs0:PRIMARY> show dbs
rs0:PRIMARY> 

Comments