Karlo Tevzadze
Karlo Tevzadze

Reputation: 31

'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 variables.

Add MongoDB's bin folder path to path variable in Environment variables

Error message:

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

Upvotes: 2

Views: 6878

Answers (2)

Jake Knoll
Jake Knoll

Reputation: 1

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.

Upvotes: 0

Anuradha Barnwal
Anuradha Barnwal

Reputation: 31

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.

Upvotes: 3

Related Questions