Mongodb Classroom image

Anil  Bist / Professional / DataBase

To post your Question Join Classroom
Lesson Topics's No:-  ||
Lessons:-Basic commands on mongo shell

Basic commands on mongo shell

Show all available databases:

show  dbs ;


Select a particular database to access, e.g. mydb. This will create mydb if it does not already exist:

use  mydb ; 


Show all collections in the database (be sure to select one first, see above):

show  collections ; 


 Show all functions that can be used with the database: ();


To check your currently selected database, use the command db

>  db


db.dropDatabase() command is used to drop a existing database.

db.dropDatabase () 
Anil  Bist

Skills    Mongodb

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a


  Students (0)