Create / Drop Database Commands   Leave a comment

  1. MongoDB use DATABASE_NAME is used to create database. The command will create a new database if it doesn’t exist, otherwise it will return the existing database.   Example: use DATABASE_NAME
  2. To drop the database use db.dropDatabase() command. Make sure you have selected correct database using use Database_Name command.
Advertisements

Posted March 10, 2018 by Izharuddin Shaikh in MongoDB

Tagged with ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: