I am following the tutorials at docs.mongodb.org, I have completed the first tutorial which was to install mongodb on a windows machine. I am now at the second stage which is ge
Seems like, The environmental variable is not correctly set up.
Go to the mongodb installation folder and get the executable files (mongo.exe, mongod.exe etc) location. (In my case) Something like :
C:\Program Files\MongoDB\Server\3.2\bin
Then go to :
Panel > System & Security > System > Advanced System Settings > Environment Variables
Find the PATH
variable and edit its value. Then add C:\Program Files\MongoDB\Server\3.2\bin
and don't forget to separate each values with ;
. Now confirm and exit.
before using MongoDB you have to run it locally to do that:
bin
folder you will find at C:\Program Files\MongoDB\Server\4.2\bin
mongod.exe
. will open a new terminal with server details.mongo.exe
. will open the shell which allows you to interact with the database.