MongoDB - list out all the databases

Posted by Professionaluser under Sql Server category on | Points: 40 | Views : 92
In SQL Server, we have sys.databases to know the list of databases under a server whereas MongoDB has below command to check for all the database lists

>show dbs 

local 0.4566
Database1 0.6422

Note: show dbs returns the database names which has at least one document/record into it

Comments or Responses

Posted by: Bhuvanesh6 on: 7/31/2016 Level:Starter | Status: [Member] | Points: 10
Simple and clear

Login to post response