{"id":12264,"date":"2021-11-24T05:08:36","date_gmt":"2021-11-24T05:08:36","guid":{"rendered":"https:\/\/linuxways.net\/?p=12264"},"modified":"2021-11-24T05:08:36","modified_gmt":"2021-11-24T05:08:36","slug":"how-to-install-mongodb-compass-in-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-mongodb-compass-in-ubuntu-20-04\/","title":{"rendered":"How to Install MongoDB Compass in Ubuntu 20.04"},"content":{"rendered":"<p>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.<\/p>\n<p>We are going to explore how <strong>to install the MongoDB compass on Ubuntu 20.04<\/strong> using the command line.<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<ul>\n<li>Ubuntu 20.04 server should be running on your system.<\/li>\n<li>Root user or sudo privileges are needed to run the administrative commands.<\/li>\n<\/ul>\n<h2><strong>Install of MongoDB compass GUI on Ubuntu 20.04<\/strong><\/h2>\n<p>Perform the following steps to install the MongoDB compass on Ubuntu 20.04 system:<\/p>\n<h3><strong>Step 1: Download the MongoDB compass .deb file\u00a0<\/strong><\/h3>\n<p>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\u00a0 official download page using the \u2018wget\u2019 utility:<\/p>\n<pre>$ wget <a href=\"https:\/\/downloads.mongodb.com\/compass\/mongodb-compass_1.28.1_amd64.deb\">https:\/\/downloads.mongodb.com\/compass\/mongodb-compass_1.28.1_amd64.deb<\/a><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"349\" class=\"wp-image-12265\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-406.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-406.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-406-300x142.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<h3><strong>Step 2: Install the .deb file\u00a0<\/strong><\/h3>\n<p>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:<\/p>\n<pre>$ sudo apt install .\/mongodb-compass_1.28.1_amd64.deb<\/pre>\n<p>The above command installs some extra packages related to MongoDB compass on your system. In a while, MongoDB compass GUI to be installed on your system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"602\" class=\"wp-image-12266\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-407.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-407.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-407-300x248.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<h3><strong>Step 3: Launch MongoDB Compass on Ubuntu 20.04<\/strong><\/h3>\n<p>Once the installation of the MongoDB compass is completed, you can launch the MongoDB compass interface on your system using the application search bar. Type the \u2018MongoDB compass\u2019 in the search bar. You will see the application icon in the search result as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"235\" class=\"wp-image-12267\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-408.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-408.png 746w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-408-300x95.png 300w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/p>\n<p>Click on the MongoDB compass application icon and the following window displays on the desktop:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1070\" height=\"883\" class=\"wp-image-12268\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-409.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-409.png 1070w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-409-300x248.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-409-1024x845.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-409-768x634.png 768w\" sizes=\"auto, (max-width: 1070px) 100vw, 1070px\" \/><\/p>\n<p>Using the MongoDB compass interface, you can add new mongo database connections. To add a new connection, click on the <strong>new connection <\/strong>and provide the local or remote database connection URL in the text field. Now, click on the <strong>Connect<\/strong> as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1063\" height=\"858\" class=\"wp-image-12269\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-410.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-410.png 1063w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-410-300x242.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-410-1024x827.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-410-768x620.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-410-150x120.png 150w\" sizes=\"auto, (max-width: 1063px) 100vw, 1063px\" \/><\/p>\n<p>Once you are connected to the MongoDB server, you can view all databases or create a new database as per your requirements.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>That\u2019s all about the installation of the MongoDB compass. Congratulations! The MongoDB compass is configured successfully on your Ubuntu 20.04 system. Now I hope as a developer, you can easily interact with your MongoDB databases using the MongoDB Compass GUI.<\/p>","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>","protected":false},"author":1,"featured_media":12401,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[691,100],"class_list":["post-12264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-mongodb-compass","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=12264"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12264\/revisions"}],"predecessor-version":[{"id":12400,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12264\/revisions\/12400"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/12401"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=12264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=12264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=12264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}