Add MongoDB to the Path

To add MongoDB to the Environmental System variable PATH, please perform the following steps:

  1. Go to the location where MongoDB zip file was extracted. For e.g., C:\Program Files\MongoDB . Or E:/MongoDB
  2. Inside MongoDB, go to folder\Server\8.0\bin .
  3. Go to Control Panel  System and Security System. Select Advanced System Settings and click Environment Variables. This will open a new dialog box.
  4. Select the variable Path in System Variables and add click on New button to add path of MongoDB. For e.g. - C:\Program Files\MongoDB\Server\8.0\bin .
  5. Similarly, Add the path for MongoDB Shell mongosh, go to folder\mongosh\bin and add the path to System variables Path. For e.g. C:\Program Files\MongoDB\mongosh\bin
  6. Similarly, Add the path for MongoDB Tools, go to folder\Tools\100\bin and add the path to System variables Path. For e.g . C:\Program Files\MongoDB\Tools\100\bin
    Figure 1. MongoDB Installation - Community Version (non-HA) (Cont.)
    A screenshot of a computer program Description automatically generated