Import error with mongorestore

c:\mongo\M220JS>mongorestore --drop --gzip --uri “mongodb+srv://m220student:m220password@” data
2019-02-19T23:01:47.118+1300 Failed: error connecting to db server: SSL errors: b07c065:x509 certificate routines:X509_STORE_add_cert:cert already in hash table

server and client are version 4.0.6

Hi!
Did you also put your cluster URI after @? (like mongodb+srv://m220student:<PASSWORD>@m220-cyshi.mongodb.net/test?retryWrites=true)

Same for me, I’ve tried all these but it doesn’t work:

mongorestore --drop --gzip --uri “mongodb+srv://m220student:m220password@@mflix-ihcqh.mongodb.net/test?retryWrites=true” data

mongorestore --drop --gzip --uri “mongodb+srv://m220student:m220password@mflix-shard-00-00-ihcqh.mongodb.net:27017” data

mongorestore --drop --gzip --uri \ “mongodb+srv://m220student:m220password@mflix-shard-00-00-ihcqh.mongodb.net:27017” data

Can some1 help out, please?

Issue solved

Choose this From Altas:

image

And:
image

I think the issue with this is that the README is somewhat confusing in how it displays the command. It should be:

mongorestore --drop --gzip --uri=mongodb+srv://m220student:m220password@<YOUR_CLUSTER_URI>" data

where you substitute your own cluster for everything after the @ (do not keep the < and > )