'mongorestore' is not recognized as an internal or external command, operable program or batch file error in Windows
I'm trying execute mongo
, mongod
and mongorestore
commands in Windows but i'm getting the error as mongo
, mongod
and mongorestore
commands are not recognized as an internal or external commands in windows.
can anyone suggest how to do?
1 Answer
4 years ago by Jahaan
Make sure you have added the MongoDB's bin folder path in environment variables.
Open environment variables:
Go to Control Panel >> System and Security >> System >> Advanced System Settings >> Advanced >> Environment variables.
Add MongoDB's bin folder path to path variable in Environment variables
Usually MongoDB's bin folder path in windows would be C:\Program Files\MongoDB\Server\4.2\bin
. Add this path to path
variable in Environment variables
.
4 years ago by Divya