Importing data mongorestore

Hi,

I am getting below error :

F:\mflix-python>mongorestore --drop --gzip --uri mongodb+srv://m220student:m220password@mflix-ozzv8.mongodb.net/test data
2019-06-24T21:49:47.252+0530 error parsing command line options: error parsing uri (mongodb+srv://m220student:m220password@mflix-ozzv8.mongodb.net/test): lookup _mongodb._tcp.mflix-ozzv8.mongodb.net: dnsquery: This operation returned because the timeout period expired.
2019-06-24T21:49:47.260+0530 try ‘mongorestore --help’ for more information

Please try this way

mongorestore --drop --gzip --uri “mongodb+srv://m220student:m220password@mflix-ozzv8.mongodb.net/test” data

1 Like

getting same error :
F:\mflix-python>mongorestore --drop --gzip --uri “mongodb+srv://m220student:m220password@mflix-ozzv8.mongodb.net/test” data
2019-06-25T07:49:04.454+0530 error parsing command line options: error parsing uri (mongodb+srv://m220student:m220password@mflix-ozzv8.mongodb.net/test): lookup _mongodb._tcp.mflix-ozzv8.mongodb.net: dnsquery: This operation returned because the timeout period expired.
2019-06-25T07:49:04.456+0530 try ‘mongorestore --help’ for more information

Please check this link

Can’t connect to mongo class atlas cluster using cmd

or contact support team
There is a long version of command instead of short srv option
Please try all options

1 Like

Still the same error …anyone help me plz

Please check this link
Does your mongorestore have uri option?
What version you are using?May be it is old
Please check mongorestore --version
mongorestore --help

Recommended Version/OS for Mongorestore [Solved]