[DOCS-8803] Comment on: "primer/import-data.txt" Created: 11/Sep/16 Updated: 11/Jan/17 Resolved: 14/Sep/16 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 01112017-cleanup |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Ravind Kumar (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
In Windows 7 Location: https://docs.mongodb.com/getting-started/shell/import-data/ |
||
| Participants: | |
| Days since reply: | 7 years, 22 weeks ago |
| Story Points: | 0.25 |
| Description |
|
mongoimport --db test --collection restaurants --drop --file ~/downloads/primer-dataset.json |
| Comments |
| Comment by Ravind Kumar (Inactive) [ 14/Sep/16 ] |
|
Closing ticket - if you have any further questions related to this matter, please visit the MongoDB Google Group for further support. |
| Comment by Ravind Kumar (Inactive) [ 12/Sep/16 ] |
|
Hello, By default, if nothing is passed using the host or port options, mongoimport attempts to connect to a database on the local machine via port 27017. Based on the error message, there is not a MongoDB database running at localhost:27017. If the mongod is on a remote server, specify the full server name or IP address along with the port number for the mongod using the host option. If the mongod is on the local machine, but is not listening on port 27017, pass the correct port number using the port parameter. |