Import data from MondoDB localhost to MongoDB Atlas - mongodb

I have this database in MongoDB Compass interface which is stored (not sure if this is the right way to describe it) in localhost:
enter image description here
Is there a way to export the data from there and import it into MongoDB cloud version?
Thank you!

first connect mongodb compass to local db and exports data , then connect mongodb compass to mongo atlas and import exported data

Related

Error while connecting MongoDB ATLAS TO MONGO DB COMPASS

I am a beginer in mongoDB and learning Mongodb atlas.
In MongoDB Atlas, Under database access created username and password ( password is system generated and has no special character)
Under Network access added a public ip address (allow access from anywhere)
Under database deployment loaded sample database.
Now I wanted to see my cluster data, so wanted to connect it to vs code or MongoDB Compass. I clicked connect, selected connect using mongo db compass, copied the string.
now i opened Mongodb compass, and under New connection i.e connect to a MongoDB deployment, i entered my URL
mongodb+srv://gourav_singh:7gamf8UkL8B6MET#cluster0.9dmds.mongodb.net/test
clicked Connect
But i got error as : Unable to connect: connect ECONNREFUSED 3.6.85.199:27017
How I can fix it, Looking for kind help. Thanks in advance

Importing data into MongoDB Atlas

I have a local database/collection that I created from an external .bson file using mongorestore. I'm able to access the collection from my local machine, however, it's not updated in MongoDB Atlas.
How exactly can I import it? It seems that mongoimport only works with json files.

MongoDB Compass using docker

I'm trying to manage my MongoDB databases through the GUI interface, but I don't how to set up it correctly. At the moment I'm using docker to set up all the necessary and I'm connecting through the command
mongo --host "localhost:27017,localhost:27016".
Now, when I open MongoDB Compass, it ask me for a string of this format:
How can I format my IP correctly?
As #super said, the answer was just mongodb://localhost:27017

migrating database from robo3t to MongoDB Atlas

I currently have a database in Robo3T that I would like to migrate to MongoDB Atlas.
Specifically, I want to move new_selen_top200 to MongoDB Atlas.
How do I go about doing that?

can connect to mlab but unable to import the document

I am connecting to mlab using the mongo import command to import the json collection.
Now i am able to connect to mlab. However, it does not import the document.
imported 0 documents
I have created the input file (test.json) in C:/data/db folder.
The foll is an illustration of the command:
I'd appreciate any guidance on where i am going wrong with this.