Trying to import data to atlas cluster

Hi,
I’m following the README file in chapter 1 and trying to build the database using mongostore command.

I have copied the command to my cmd (I’m running windows 10), and got the following error:

Did anyone else had the same error?
I’m also not sure about the cluster URL, can anyone direct me to it on the atlas site?

Thanks :grinning:

You have a / in front of your uri option passed into mongorestore. Remove the “/”, the --uri option shoul the the mongoDB URL string for your atlas as you have in quotes.

2 Likes

@pawlowsg It worked. Thanks! :grinning:

It was confusing to me as well.

For future reference here is the command
mongorestore --drop --gzip --uri \

“mongodb+srv://m220student:m220password@<YOUR_CLUSTER_URI>” data