[DOCS-8114] Comment on: "primer/import-data.txt" Created: 16/Jun/16  Updated: 03/Nov/17  Resolved: 16/Jun/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.com/getting-started/node/import-data/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36
Referrer: https://docs.mongodb.com/getting-started/node/introduction/
Screen Resolution: 1680 x 1050


Participants:
Days since reply: 7 years, 35 weeks ago

 Description   

"You must have a running mongod instance in order to import data into the database"

There is no explanation how to do this



 Comments   
Comment by Ravind Kumar (Inactive) [ 16/Jun/16 ]

Hello,

The information you are looking for can be found on the second step on that page. I have linked it here.

I've also partially reproduced the specific section below. If you do not see the steps I've linked to on that page, please let us know, along with information on your OS, Browser, and any plugins or ad blockers you have running.

In the system shell or command prompt, use mongoimport to insert the documents into the restaurants collection in the test database. If the collection already exists in the test database, the operation will drop the restaurants collection first.

mongoimport --db test --collection restaurants --drop --file ~/downloads/primer-dataset.json

The mongoimport connects to a mongod instance running on localhost on port number 27017. The --file option provides the path to the data to import, in this case, ~/downloads/primer-dataset.json.

If you are looking for instructions on running a mongod instance, please see the relevant installation documentation for your operating system here.

Generated at Thu Feb 08 07:55:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.