0% found this document useful (0 votes)
79 views6 pages

Steps To Working With MongoDB Compass Collections

The document provides steps for creating a collection in MongoDB Compass: 1) Open MongoDB Compass, 2) Connect to an existing MongoDB database and cluster or create a new database named TravelLog and cluster named passengers, 3) Import a CSV or JSON file into the newly created TravelLog database to populate the initial collection.

Uploaded by

raviteja kammela
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views6 pages

Steps To Working With MongoDB Compass Collections

The document provides steps for creating a collection in MongoDB Compass: 1) Open MongoDB Compass, 2) Connect to an existing MongoDB database and cluster or create a new database named TravelLog and cluster named passengers, 3) Import a CSV or JSON file into the newly created TravelLog database to populate the initial collection.

Uploaded by

raviteja kammela
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Create Collection in Mongo DB using Mongo DB compass

Step 1:

Open MongoDBCompass

GUI of MongoDBCompass
Step 2:

Connect with MongoDB & open Databases

Step 3:

Create database with name TravelLog and cluster name passengers


Step 4:

Open database TravelLog & open cluster passengers


Step 5:

Create a passengers csv or JSON file (JSON file can be created by using notepad and saveas .JSON)
Step 6:

Import csv or JSON file in MongoDBCompass

We have successfully created a cluster in MongoDB.


Now we will open it using command prompt.

You might also like