Unable to import dataset

I am hitting the following command from my command prompt and getting an error

D:\Nehal\mongoDBUniversityCourse\mflix-java>mongorestore --drop --gzip --uri mongodb+srv://m220student:m220password@mflix-3txbk.mongodb.net/test?retryWrites=true&w=majority data
‘mongorestore’ is not recognized as an internal or external command,
operable program or batch file.
‘w’ is not recognized as an internal or external command,
operable program or batch file.

can someone help where am i going wrong?

What do you get when you run this:
mongorestore --help

I get the following:
D:\Nehal\mongoDBUniversityCourse\mflix-java>mongorestore --help
‘mongorestore’ is not recognized as an internal or external command,
operable program or batch file.

You haven’t installed mongodb or you haven’t set the PATH variable to the mongodb bin folder.

1 Like