0 0
Read Time:1 Minute, 33 Second

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.

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
100%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

One thought on “MongoDB Compass

  1. Wow, marvelous weblog layout! How long have you ever
    been blogging for? you make running a blog glance easy.
    The whole glance of your site is excellent, as neatly as the content!

Leave a Comment