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

Did you also put your cluster URI after @? (like mongodb+srv://m220student:<PASSWORD>

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

mongorestore --drop --gzip --uri “mongodb+srv://” data

mongorestore --drop --gzip --uri “mongodb+srv://” data

mongorestore --drop --gzip --uri \ “mongodb+srv://” data

Can some1 help out, please?

Issue solved

Choose this From Altas:



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 > )