Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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. enter image description here

like image 954
Amit Kumar Avatar asked Sep 21 '20 09:09

Amit Kumar


3 Answers

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
like image 80
SakthiSureshAnand Avatar answered Nov 03 '22 23:11

SakthiSureshAnand


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

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

like image 14
ROHIT KHURANA Avatar answered Nov 03 '22 22:11

ROHIT KHURANA


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

like image 6
agileDev Avatar answered Nov 03 '22 21:11

agileDev