Home > Net >  Error import data to mongo atlas cluster mongimport
Error import data to mongo atlas cluster mongimport

Time:10-08

I' trying since 2 days to import data to my mongo cluster using the mongimport command but i'm getting an error

my mongoimport command

mongoimport --uri mongodb srv://cabinetdermes:<MYPASSWORDHERE>@cluster2.ufzkq.mongodb.net/cabinetdermes --collection myData --type json --file /Users/zakisb/Desktop/inventory.crud.json

The error that i keep getting

2021-10-08T13:33:35.808 0100    error parsing command line options: error parsing uri: lookup cluster2.ufzkq.mongodb.net on 172.20.10.1:53: cannot unmarshal DNS message

it's strange because i've already done the import before with another db and it worked successfully. yet this time i' getting error. Please help !

CodePudding user response:

I solved the problem by simply go to settings and changing my dns adresse.

CodePudding user response:

Use with option --gzip

check this

  • Related