Skip to content

MongoDB Windows Installation

SunilOS edited this page Mar 8, 2023 · 1 revision

MongoDB Windows Installation

Download

  1. Go to the MongoDB download center website: https://www.mongodb.com/download-center/community.
  2. Scroll down to the "Community Server" section and select the version of MongoDB you want to install. Click the "Download" button for the Windows version.
  3. Choose the appropriate version based on your Windows platform (32-bit or 64-bit).

Installation

  1. Once the download is complete, locate the downloaded installer file and double-click it to start the installation process.
  2. Follow the installation wizard, accepting the default options for most of the steps.
  3. When prompted, choose the "Complete" installation type.
  4. Once the installation is complete, MongoDB will be installed in the "C:\Program Files\MongoDB" directory.

Start the Server

  1. To run MongoDB, open a command prompt and navigate to the MongoDB bin directory, which should be "C:\Program Files\MongoDB\Server{version}\bin". Replace "{version}" with the version number you installed.
  2. In the bin directory, run the "mongod.exe" executable to start the MongoDB server.

User Interface

  1. Optionally, you can also install MongoDB Compass, a GUI tool for MongoDB, by selecting the "Custom" installation type during the installation process and selecting "MongoDB Compass" from the list of features.

That's it! MongoDB should now be installed on your Windows system.

Clone this wiki locally