{"id":25264,"date":"2023-05-17T17:56:19","date_gmt":"2023-05-17T15:56:19","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=25264"},"modified":"2023-05-17T17:56:21","modified_gmt":"2023-05-17T15:56:21","slug":"mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/","title":{"rendered":"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<strong> <\/strong><\/h2>\n\n\n\n<p><strong>MongoDB <\/strong>is a <strong>no sql <\/strong>database based on key value pair database ( as Redis )<\/p>\n\n\n\n<p>In this topic we will check how to install MongoDB Community edition using the MSI file ( with cmd method and setup wizard method )<\/p>\n\n\n\n<p>After that we will be able to use Mongo DB on our windows system and begin to work on Mongo requests \ud83d\ude42 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation with MSI and Setup wizard<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install Mongo Server<\/li>\n<\/ul>\n\n\n\n<p>First  step is to go on MongoDB site and select the binaries for <strong>MSI <\/strong>file<\/p>\n\n\n\n<p>Follow this link<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"710\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png\" alt=\"\" class=\"wp-image-25268\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-300x208.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-768x533.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1.png 1231w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong><span style=\"text-decoration: underline\">Note:<\/span><\/strong><\/p>\n\n\n\n<p>You can also download <strong>Mongo Server <\/strong>for many distributions such as Ubuntu or Debian <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"424\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI1-1024x424.png\" alt=\"\" class=\"wp-image-25270\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI1-1024x424.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI1-300x124.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI1-768x318.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI1-1536x636.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI1.png 1901w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on download , you will get an installer <\/li>\n<\/ul>\n\n\n\n<p><strong><span style=\"text-decoration: underline\">Note:<\/span><\/strong><\/p>\n\n\n\n<p>You can start it with user interface or launch it by command line we will see that in the second part<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"437\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI2-1024x437.png\" alt=\"\" class=\"wp-image-25272\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI2-1024x437.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI2-300x128.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI2-768x328.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI2-1536x656.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI2.png 1895w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Accept the warning message<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI3-1024x376.png\" alt=\"\" class=\"wp-image-25273\" width=\"1014\" height=\"372\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI3-1024x376.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI3-300x110.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI3-768x282.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI3-1536x564.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI3.png 1906w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on next on the installation wizard<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI4.png\" alt=\"\" class=\"wp-image-25275\" width=\"1019\" height=\"811\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI4.png 491w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI4-300x239.png 300w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select you setup type ( complete or custom ) <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI5.png\" alt=\"\" class=\"wp-image-25276\" width=\"1013\" height=\"808\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI5.png 489w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI5-300x239.png 300w\" sizes=\"auto, (max-width: 1013px) 100vw, 1013px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I selected custom in order to chose the installation and data\/log  directory<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"458\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI6.png\" alt=\"\" class=\"wp-image-25277\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI6.png 1000w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI6-300x137.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI6-768x352.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>Select if you want to install Mongo D as a service or as a Local or domain user ( if it&#8217;s not installed as a service you will have to start it manually ) <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can select the log directory below and your Data directory as well:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"388\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI8.png\" alt=\"\" class=\"wp-image-25278\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI8.png 497w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI8-300x234.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"498\" height=\"384\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI9.png\" alt=\"\" class=\"wp-image-25282\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI9.png 498w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI9-300x231.png 300w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Create database directory.<a href=\"https:\/\/www.mongodb.com\/docs\/manual\/tutorial\/install-mongodb-on-windows-unattended\/#create-database-directory\"><\/a><\/h3>\n\n\n\n<p>Create the <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/glossary\/#std-term-dbpath\">data directory<\/a> where MongoDB stores data. MongoDB&#8217;s default data directory path is the absolute path <code>\\data\\db<\/code> on the drive from which you start MongoDB.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From the Command Interpreter, create the data directories:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncd C:\\\nmd &quot;\\data\\db&quot;\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Start the Mongo Server<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Browse into the binary directory <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI95-1024x420.png\" alt=\"\" class=\"wp-image-25357\" width=\"987\" height=\"404\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI95-1024x420.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI95-300x123.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI95-768x315.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI95.png 1253w\" sizes=\"auto, (max-width: 987px) 100vw, 987px\" \/><\/figure>\n\n\n\n<p>Start the <strong>mongod.exe <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check if the server is now listening <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"413\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI96-1024x413.png\" alt=\"\" class=\"wp-image-25358\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI96-1024x413.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI96-300x121.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI96-768x310.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI96-1536x619.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI96.png 1898w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Installation with MSI in command line<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the <code>.msi<\/code> installer to install all MongoDB binaries, including <a href=\"https:\/\/\/www.mongodb.com\/products\/compass\">MongoDB Compass.<\/a><\/li>\n<\/ul>\n\n\n\n<p>In the Command Line Interpreter, go to the directory containing the <code>.msi<\/code> installation binary and run the below command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPS C:\\Users\\nso&amp;gt; cd C:\\Users\\nso\\Downloads\nPS C:\\Users\\nso\\Downloads&amp;gt; msiexec.exe \/l*v mdbinstall.log  \/qb \/i mongodb-windows-x86_64-6.0.6-signed.msi\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"260\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-15-1024x260.png\" alt=\"\" class=\"wp-image-25305\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-15-1024x260.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-15-300x76.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-15-768x195.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-15.png 1285w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It will start the Mongo server with all features like Compass:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"604\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-14-1024x604.png\" alt=\"\" class=\"wp-image-25302\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-14-1024x604.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-14-300x177.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-14-768x453.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-14.png 1415w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It will propose you to setup Compass with your <strong>Mongo server <\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"603\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-16-1024x603.png\" alt=\"\" class=\"wp-image-25306\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-16-1024x603.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-16-300x177.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-16-768x452.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-16.png 1414w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you want to only install the Mongo DB server you must exclude the Compass installation by using the below command  you should add <strong>SHOULD_INSTALL_COMPASS<\/strong> argument with value 0 if you want to keep Compass installation just remove this argument :<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmsiexec.exe \/l*v mdbinstall.log  \/qb \/i mongodb-windows-x86_64-6.0.6-signed.msi ^            SHOULD_INSTALL_COMPASS=&quot;0&quot;\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"423\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-18-1024x423.png\" alt=\"\" class=\"wp-image-25313\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-18-1024x423.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-18-300x124.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-18-768x317.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-18.png 1245w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To chose your installation directory use the blow command with the <strong>INSTALLLOCATION <\/strong>argument:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Users\\nso\\Documents\\MONGO MSI BINARIES&gt;msiexec.exe \/l*v mdbinstall.log \/qb \/i mongodb-windows-x86_64-6.0.6-signed.msi ^ INSTALLLOCATION=\"C:\\MongoDB\\Server\\6.0\\\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"446\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-17-1024x446.png\" alt=\"\" class=\"wp-image-25311\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-17-1024x446.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-17-300x131.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-17-768x335.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-17.png 1257w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you want to install Mongo server as a service using the command line use this command:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmsiexec.exe \/l*v mdbinstall.log  \/qb \/i mongodb-windows-x86_64-6.0.6-signed.msi ^         ADDLOCAL=&quot;ServerService,LegacyClient&quot; ^ SHOULD_INSTALL_COMPASS=&quot;0&quot;\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"420\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-19-1024x420.png\" alt=\"\" class=\"wp-image-25321\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-19-1024x420.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-19-300x123.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-19-768x315.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/image-19.png 1249w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Install Mongo Shell<\/strong> <\/li>\n<\/ul>\n\n\n\n<p>The MongoDB Shell (<a href=\"https:\/\/www.mongodb.com\/docs\/mongodb-shell\/\">mongosh<\/a>) is not installed with MongoDB Server. You need to follow the <a href=\"https:\/\/www.mongodb.com\/docs\/mongodb-shell\/install\/\">mongosh installation instructions<\/a> to download and install <a href=\"https:\/\/www.mongodb.com\/docs\/mongodb-shell\/\">mongosh<\/a> separately.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI93-1024x556.png\" alt=\"\" class=\"wp-image-25285\" width=\"1091\" height=\"592\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Supported MongoDB Versions<a href=\"https:\/\/www.mongodb.com\/docs\/mongodb-shell\/install\/#supported-mongodb-versions\"><\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<p>You can use the MongoDB Shell to connect to MongoDB version 4.2 or greater.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Install Mongosh and start it<\/strong>\n<ul class=\"wp-block-list\">\n<li>Click on the link below<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><a href=\"https:\/\/downloads.mongodb.com\/compass\/mongosh-1.8.2-win32-x64.zip\">https:\/\/downloads.mongodb.com\/compass\/mongosh-1.8.2-win32-x64.zip<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/MSI94-1024x520.png\" alt=\"\" class=\"wp-image-25286\" width=\"1027\" height=\"521\" \/><\/figure>\n\n\n\n<p>You are now connected to your Mongo DB server and you can now start to work on it<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Test Mongo access<\/strong><\/li>\n<\/ul>\n\n\n\n<p>You can use basic commands like <strong>show dbs<\/strong> to see your existing database( there are 3 by default )<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Now we know how to install a MongoDB using <strong>MSI <\/strong>binaries,you will also find a post <a href=\"https:\/\/www.dbi-services.com\/blog\/mongodb-installation\/\">here<\/a> explaining how to install Mongo server on Linux using <strong>dbi-services best practices<\/strong>, we will see next time how to use MongoDB to perform some basic tasks in order to familiarize with this great software \ud83d\ude42<\/p>\n\n\n\n<p>I also invite you to check the <a href=\"https:\/\/www.dbi-services.com\/blog\/\">dbi bloggers<\/a> posts and also <a href=\"https:\/\/www.dbi-services.com\/blog\/author\/nabilsaoual\/\">mine<\/a> \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction MongoDB is a no sql database based on key value pair database ( as Redis ) In this topic we will check how to install MongoDB Community edition using the MSI file ( with cmd method and setup wizard method ) After that we will be able to use Mongo DB on our windows [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1739],"tags":[],"type_dbi":[],"class_list":["post-25264","post","type-post","status-publish","format-standard","hentry","category-nosql"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file\" \/>\n<meta property=\"og:description\" content=\"Introduction MongoDB is a no sql database based on key value pair database ( as Redis ) In this topic we will check how to install MongoDB Community edition using the MSI file ( with cmd method and setup wizard method ) After that we will be able to use Mongo DB on our windows [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-17T15:56:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-17T15:56:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file\",\"datePublished\":\"2023-05-17T15:56:19+00:00\",\"dateModified\":\"2023-05-17T15:56:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/\"},\"wordCount\":571,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png\",\"articleSection\":[\"NoSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/\",\"name\":\"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png\",\"datePublished\":\"2023-05-17T15:56:19+00:00\",\"dateModified\":\"2023-05-17T15:56:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/","og_locale":"en_US","og_type":"article","og_title":"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file","og_description":"Introduction MongoDB is a no sql database based on key value pair database ( as Redis ) In this topic we will check how to install MongoDB Community edition using the MSI file ( with cmd method and setup wizard method ) After that we will be able to use Mongo DB on our windows [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/","og_site_name":"dbi Blog","article_published_time":"2023-05-17T15:56:19+00:00","article_modified_time":"2023-05-17T15:56:21+00:00","og_image":[{"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png","type":"","width":"","height":""}],"author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file","datePublished":"2023-05-17T15:56:19+00:00","dateModified":"2023-05-17T15:56:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/"},"wordCount":571,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png","articleSection":["NoSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/","url":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/","name":"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png","datePublished":"2023-05-17T15:56:19+00:00","dateModified":"2023-05-17T15:56:21+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/AMSI1-1024x710.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/mongodb-install-mongo-server-and-mongo-shell-on-windows-using-msi-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"MongoDB: Install Mongo Server and Mongo shell on Windows using MSI file"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/25264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=25264"}],"version-history":[{"count":38,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/25264\/revisions"}],"predecessor-version":[{"id":25360,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/25264\/revisions\/25360"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=25264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=25264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=25264"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=25264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}