Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Won't Do
-
None
-
None
-
None
Description
Description
To use server binaries (mongo, mongod, mongorestore, etc.) from Command Prompt or PowerShell in Windows, you must either add the binary to your system path variable or provide the full binary path. The full path is unergonomic, error-prone, and doesn't match our MacOS/*NIX docs.
Bad - Full Binary Path Name
"C:\Program Files\MongoDB\Server\4.0\bin\mongod.exe" --dbpath="c:\data\db"
|
Good - Binary in System %PATH%
mongod --dbpath="c:\data\db"
|
To add a binary to the system path:
- Navigate to Control Panel > System
- Click Advanced or Advanced Settings
- Click Environment Variables
- Find the Path system variable and click Edit
- Add the path of the installed binary folder to the list
- Save
Scope of changes
Fix, test, and backport to 3.4