Tuesday, 5 January 2016

MongoDB -- Basic Commands

Basic Commands:

the following are some of the basic commands:
  

ctrl+l or cls 

    --  clears your screen.

show dbs

    -- displays all the database names.

show collections

   -- displays the collection names

use <databasename> 

   -- creates the database with a name

help

   -- help command for basic help for commands

db.help()

 -- also a help command with all the methods specified by mongodb

db

-- prints the current database name.

No comments:

Post a Comment