MongoDB does not offer any web-based GUI to interact with the databases. While you are working as a developer, it would be very different to manage all databases using the command line. MongoDB Compass provides an interactive GUI for managing, querying, analyzing, and optimizing your MongoDB databases. This tool provides deep performance insights and you can easily use the drag and drop feature to build pipelines. MongoDB Compass GUI enables developers to create, read, delete, and update the database using a graphical environment. This tool is quite similar to phpMyAdmin, which helps you to explore your MongoDB data, run the various queries, and interact with all databases.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related MongoDB configuration queries.
In this context, we shall look into how to install the MongoDB compass on Ubuntu 20.04 using the command line.
Note that Root user or sudo privileges are needed to run the administrative commands.
1. Download the MongoDB compass .deb file
The MongoDB compass application is not present for installation in the official Ubuntu repository. But, you can install the MongoDB compass application by downloading the .deb packages from its official download page using the 'wget' utility:
$ wget https://downloads.mongodb.com/compass/mongodb-compass_1.28.1_amd64.deb
2. Install the .deb file
Once the .deb file is downloaded to your system, you can easily install the .deb file packages on your system by running the following command:
$ sudo apt install ./mongodb-compass_1.28.1_amd64.deb
The above command installs some extra packages related to MongoDB compass on your system.
This article covers the installation of the MongoDB compass on your Ubuntu 20.04 system. In fact, MongoDB Compass is a graphical tool for MongoDB that helps you to create, delete, read and update the database graphically. It is very similar to phpMyAdmin which allows you to explore your data, run the queries, and interact with the database.