[DOCS-9113] Comment on: "primer/import-data.txt" Created: 07/Oct/16  Updated: 27/Jan/17  Resolved: 27/Jan/17

Status: Closed
Project: Documentation
Component/s: primer
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial - P5
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: collector-298ba4e7, primer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows

Location: https://docs.mongodb.com/getting-started/shell/import-data/
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Referrer: https://docs.mongodb.com/getting-started/shell/import-data/
Screen Resolution: 1366 x 768


Participants:
Days since reply: 7 years, 2 weeks, 6 days ago
Story Points: 0.1

 Description   

The mongoimport command doesn't work I get a missing semicolon error



 Comments   
Comment by Kay Kim (Inactive) [ 27/Jan/17 ]

Cannot reproduce the error.

Comment by Ravind Kumar (Inactive) [ 07/Oct/16 ]

Hello!

From the ticket description it appears you are using Windows. If you are also running your MongoDB installation from windows, then the issue is likely that the path given in the example assumes a Linux system.

We appreciate you bringing this to our attention. In the meantime, please replace the filepath specified in the example with a windows filepath that corresponds to the location of the file to import.

For example, if you saved the primer dataset file to C:\Downloads, then the mongoimport command should look as follows:

mongoimport --db test --collection restaurants --drop --file C:\Downloads\primer-dataset.json

If you are not using windows, please copy and paste into a comment the exact input and output from the shell or terminal environment.

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