![]() |
MongoDB uses a document-oriented storage model which contrasts with traditional relational databases. Instead of storing data in tables with rows and columns, MongoDB stores data as documents in BSON format. In this article, We will learn about How to Create a Database using MongoDB Compass in detail. Understanding MongoDB Document-Oriented Storage vs Traditional Relational Databases
Example of a DocumentThe Document contains the information of a STUDENT in JSON format. { Example of a CollectionThe Bunch of documents creates a collection. [ MongoDB Compass
Let’s Steps for Install MongoDB CompassStep 1: Download the MongoDB Compass exe package from MongoDB official Website. Step 2: After Redirect to that page Click on “Download” Button. Step 3: After Successful Download, Open the downloaded file by double click on Downloaded File. Step 4: After Double Click on the Downloaded File. MongoDB Compass Start Installing in your system. It takes a few seconds to install. Step 5: After Successful Install it will be automatically opened in your system. From the Above Steps, we have learned how to Install MongoDB Compass. Now Lets, Learn How to Create a Database using MongoDB Compass. Let’s create a new Database using MongoDB CompassStep 1: Simply Open MongoDB Compass on your system. Step 2: After Successfully Opening, Click on “Connect” Button. Step 3: After Click On “Connect” Button, Click on plus (+) Sign. Step 4: After Clicking on Plus (+) icon, a popup will appear in which you have to give Database Name and Collection Name. Step 5: Here you can give any Database Name and Collection Name as per your Choice. Here taking the Database name “GFG” and Collection Name “college”. Step 6: After that Click on the “Create Database” Button. From the above Steps Database of the name “GFG” will be Created. Step 7: After that, click on “ADD DATA” and select the “Insert document” option. Step 8: After Clicking on “Insert document” a new popup appear. Step 9: Here paste or write the bunch of documents that is Collection and After after that Click on the “Insert” Button. Databased have been created using MongoDB compass. ConclusionOverall, MongoDB’s document-oriented storage offers a flexible and scalable alternative to traditional relational databases. By using JSON-like documents and collections, MongoDB simplifies the management of complex data structures and offers automatic conversion between JSON and BSON. Tools like MongoDB Compass further enhance user experience by providing a graphical interface for managing and interacting with MongoDB databases. FAQsHow does MongoDB store data compared to traditional relational databases?
What is the purpose of MongoDB Compass?
How can I create a new database using MongoDB Compass?
|
Reffered: https://www.geeksforgeeks.org
Databases |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |