command prompt are showing 'mongorestore' is not recognized as an internal or external command, operable program or batch file command prompt are showing 'mongorestore' is not recognized as an internal or external command, operable program or batch file windows windows

command prompt are showing 'mongorestore' is not recognized as an internal or external command, operable program or batch file


You need to install separately. Please take reference of below link

https://www.mongodb.com/try/download/database-tools


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 varibleeg,

C:\Users\ssa\Downloads\mongodb-database-tools-windows-x86_64-100.2.1\bin


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