filmov
tv
How to set environment variable for MongoDB in windows | MongoDB setting up the Environment Variable
Показать описание
Adding MongoDB to PATH Environment Variable in Windows
1. Hit Win+Pause/Break. This will open System Properties Window.
2. Click on Advanced system settings.
3. At the bottom of the newly opened window click on Environment Variables.
4. In the new window Select Path environment variable and click Edit.
5. Add ; at the end of the current variable value and append C:\Program Files\MongoDB\Server\4.2\bin(the exact may differ depending upon version and architecture of the application). Click OK to save.
Now start the Command Prompt and enter the following command:
mongo --version
1. Hit Win+Pause/Break. This will open System Properties Window.
2. Click on Advanced system settings.
3. At the bottom of the newly opened window click on Environment Variables.
4. In the new window Select Path environment variable and click Edit.
5. Add ; at the end of the current variable value and append C:\Program Files\MongoDB\Server\4.2\bin(the exact may differ depending upon version and architecture of the application). Click OK to save.
Now start the Command Prompt and enter the following command:
mongo --version