I set up the path in the environment variables to the mongo.exe and mongod.exe but still i am not able to use the commands mongo and mongod to start it directly, the command prompt is not recognising the commands mongo and mongod, what should i do to use these commands?
Asked
Active
Viewed 39 times
-1
-
What is the operating system and version, and which shell/interpreter are you using? – Joe Jun 24 '20 at 22:42
-
i am using windows 10 64bits and i am using mongodb 4.2 – Jason Jun 25 '20 at 04:01
1 Answers
0
if you want to access mongod and mongo as command from command prompt then instead of setting path in environment variable you need to create aliases in command prompt refer this for creating alias in command prompt.
Or go to directory where mongod.exe available and execute it.
Otherwise,simple way is download 'mongoDB compass' which is GUI for MongoDB.

Dimple Patel
- 718
- 1
- 4
- 14