Cluster name while doing importing in sandbox

I am getting the error while connecting with mongodump. I think cluster name could be wrong. Can you please tell me the name only.

Command:
mongodump --uri “mongodb+srv://mongo:mongo@sandbox.mongodb.net/sample_supplies”

Output:
2021-05-20T19:15:53.316+0530 error parsing command line options: error parsing uri (mongodb+srv://mongo:mongo@sandbox.mongodb.net/sample_supplies): lookup _mongodb._tcp.sandbox.mongodb.net on 127.0.0.53:53: no such host
2021-05-20T19:15:53.316+0530 try ‘mongodump --help’ for more information

Command:
mongodump --uri “mongodb+srv://mongo:mongo@clusterURI.mongodb.net/sample_supplies”

Output:
2021-05-20T19:16:19.094+0530 error parsing command line options: error parsing uri (mongodb+srv://mongo:mongo@clusterURI.mongodb.net/sample_supplies): lookup _mongodb._tcp.clusterURI.mongodb.net on 127.0.0.53:53: no such host
2021-05-20T19:16:19.094+0530 try ‘mongodump --help’ for more information
root@devops-vaibhav:~/Downloads/mongodb-linux-x86_64-ubuntu1804-4.4.6/bin#
"

Lecture : https://university.mongodb.com/mercury/M001/2021_May_18/chapter/Chapter_2_Importing_Exporting_and_Querying_Data/lesson/5f35955a04e9ff7f1566edbb/lecture

This URI is wrong. That is the reason why you get

Make sure you cut-n-paste the URI of your cluster. Follow the respective lecture to determine how to get your URI.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.