MongoDB set environmental variables path

In this article, we will set environmental variables path for MongoDB on windows.

1. Navigate to mongo shell path i.e. C:\Program Files\MongoDB\Server\4.0\bin

MongoDB set environmental variables path

2. Then, copy the path C:\Program Files\MongoDB\Server\4.0\bin

3. Right click on This PC(or My Computer) and select properties.

4. Then click on Advanced System settings.

5. Click on Environment Variables.

6. Under User variables section select path and click on edit.

7. Click on New and paste full path(In setup path for MongoDB is C:\Program Files\MongoDB\Server\4.0\bin)

8. Click OK(3 times).

9. Windows+R or in command prompt type ‘mongo’, then we will be able connect to MongoDB shell.

Made video for the same. If it is useful, please subscribe my channel on youtube.

Leave a Reply

Your email address will not be published. Required fields are marked *