Skip to content Skip to sidebar Skip to footer

'mongorestore' Is Not Recognized As An Internal Or External Command, Operable Program Or Batch File

I tried this way but it still does not work. Control Panel >> System and Security >> System >> Advanced System Settings >> Advanced >> Environment var

Solution 1:

If you guys using version above 4.2 its doesn't have mongostore in your bin folder, so install one more tool i.e https://www.mongodb.com/try/download/database-tools after installing this add it's bin path to your env ex: C:\Program Files\MongoDB\Tools\100\bin or make your root path same in cmd ex: C:\Program Files\MongoDB\Tools\100\bin then run the command mongorestore /dump. Here /dump is path for your dump folder.

Solution 2:

make sure your using the msi version not the rpm or tgz if your using windows. Also, add the directory of the files you want to restore to your path. The mongorestore command was not being recognized there until I added it, it was only being recognized in the directory I had it installed.

Post a Comment for "'mongorestore' Is Not Recognized As An Internal Or External Command, Operable Program Or Batch File"