1.3 Installation and Cloud Service - Gs1TestTeam/MongoDB_Task GitHub Wiki

1.3 Install and Cloud Service

A. To run on Local Machine follow these steps: MongoDB

  • Download latest Community/Enterprise MongoDB version from MongoDB Download Page.

    You can also follow steps explained in this page for installation depending on your System.

  • Run the Installer(.msi) for unattended installation.

    Note: Remember to uncheck "Install MongoDB Compass" (there is a bug in the Installer which will halt the installation if we select installing Compass)

  • After Installation is successfully completed copy the path and add it to Environment Variable "<C:\Program Files\MongoDB\Server\4.0\bin >"

  • Connect using the following command: mongo host:port/database -u <dbuser> -p <dbpassword>

B. To run MongoDB Cluster on Cloud, SIGNUP for mLab which will give you free 500MB of Sandbox for development (You can choose between Azure, AWS and Google Cloud).

After you finish sginning up and creating you very first MongodDB database. You can now connect using the MongodDB Compass (Robo3T or any other MongoDB GUIs) using the following details.

  • Hostname: ds237832.mlab.com (looks something like this)
  • Port: 37832 (will be different in your case)
  • Database: Example_Database
  • Username: dbuser
  • Password: dbpassword

Note: REMEMBER TO CREATE USER BEFORE CONNECTING TO MongoDB SERVER.

⚠️ **GitHub.com Fallback** ⚠️