Tutorialsteacher

Follow Us

Articles
  • C#
  • C# OOP
  • ASP.NET Core
  • ASP.NET MVC
  • LINQ
  • Inversion of Control (IoC)
  • Web API
  • JavaScript
  • TypeScript
  • jQuery
  • Angular 11
  • Node.js
  • D3.js
  • Sass
  • Python
  • Go lang
  • HTTPS (SSL)
  • Regex
  • SQL
  • SQL Server
  • PostgreSQL
  • MongoDB
  • MongoDB - Get Started
  • What is MongoDB?
  • Install MongoDB
  • MongoDB Server
  • MongoDB Shell
  • MongoDB Shell Commands
  • MongoDB Compass
  • MongoDB Database
  • MongoDB Collections
  • MongoDB Documents
  • Insert Single Document
  • Insert Multiple Documents
  • Import Data into Collection
  • Find Single Document
  • Find Multiple Documents
  • MongoDB Cursor
  • MongoDB Sort Documents
  • Update Single Document
  • Update Multiple Documents
  • Update Arrays
  • Update Embedded Documents
  • Delete Documents
  • Relations in MongoDB
  • Aggregation in MongoDB
Entity Framework Extensions - Boost EF Core 9
  Bulk Insert
  Bulk Delete
  Bulk Update
  Bulk Merge

MongoDB Compass

MongoDB Compass is a GUI based tools (unline MongoDB Shell) to interact with local or remote MongoDB server and databases. Use Compass to visually explore your data, run ad hoc queries, perform CRUD operations, and view and optimize your query performance. It can be installed on Linux, Mac, or Windows.

If you have not installed MongoDB Compass with the MongoDB, then download the free community version of Compass for your platform from here.

Now, do a window search on "mongodb compass" and open it, as shown below.

MongoDB Compass

On the main page, click on the New Connection tab on the left pane to open New Connection page shown above. You can paste a connection string or click on Fill in connection fields individually link. This will open the following window where you can enter the host name, port, username, password, etc.

MongoDB Compass

This already has default parameters, just click OK to connect with your local server, as shown below.

MongoDB Compass

As you can see above, it will display all the databases on the connected MongoDB server. On the left pane, it displays information about the connected server.

Now, you can create, modify, delete databases, collections, documents using MongoDB Compass. Click on the CREATE DATABASE button to create a new database. This will open Create Database popup, as shown below.

MongoDB Compass - Create Database

Enter your database name and collection name and click Create Database. This will create a new database humanResourceDB with the new employees collection shown below.

MongoDB Compass - Collections

Click on employees collection to insert, update, find documents in it. This will open the following window to manage documents.

MongoDB Compass - Manage Documents

Thus, you can use MongoDB Compass UI to manage your MongoDB databases.

TUTORIALSTEACHER.COM

TutorialsTeacher.com is your authoritative source for comprehensive technologies tutorials, tailored to guide you through mastering various web and other technologies through a step-by-step approach.

Our content helps you to learn technologies easily and quickly for learners of all levels. By accessing this platform, you acknowledge that you have reviewed and consented to abide by our Terms of Use and Privacy Policy, designed to safeguard your experience and privacy rights.

[email protected]

ABOUT USTERMS OF USEPRIVACY POLICY
copywrite-symbol

2024 TutorialsTeacher.com. (v 1.2) All Rights Reserved.