I have installed the MongoDB community version in my window machine and set the environment path of the MongoDB bin folder. From the command prompt, mongod and mongo command is working but mongorestore and mongodump are not working.
Yes as @Rohit said , we need to download separately from the given link . But that is not enough to run the mongorestore
command .
Additionally we should set the path of the Mongo db tools in to our environment variable. After I have done that the command has recognized from my end .
Sample path set in to my windows machine environment varible eg,
C:\Users\ssa\Downloads\mongodb-database-tools-windows-x86_64-100.2.1\bin
You need to install separately. Please take reference of below link
https://www.mongodb.com/try/download/database-tools
You can also download the mongodb database tools and paste it's contents of the bin folder to the bin folder of mongodb server. It works for me in mongodb version 4.4:
Example:-
From:
C:\Program Files\MongoDB\Tools\100\bin
to:
C:\Program Files\MongoDB\Server\4.4\bin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With