[DOCS-11072] Problem running "mongoimport command" Created: 30/Nov/17 Updated: 27/Oct/23 Resolved: 09/Apr/18 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Stennie Steneker (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | collector-298ba4e7, mts | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows OS |
||
| Participants: | |
| Days since reply: | 5 years, 44 weeks, 2 days ago |
| Description |
|
Generally this should work as per the documentation, but it ain't working if you are trying to execute from the server after connecting to "mongo.exe" mongoimport --db test --collection restaurants --drop --file ~/downloads/primer-dataset.json Instead, before even entering the mongo.exe console, at bin, the below command is importing the data - mongoimport.exe --db test --collection restaurants --drop --file ~/downloads/primer-dataset.json |
| Comments |
| Comment by Stennie Steneker (Inactive) [ 09/Apr/18 ] |
|
mongoimport.exe is a command-line utility similar to mongo.exe and must be run from within an O/S shell (for example, Windows Command Prompt or PowerShell). If you try to run mongoimport from within a mongo shell session, the expected outcome will be a syntax error similar to:
Note that the DOCS project is for reporting documentation errata or suggestions. For appropriate channels for MongoDB-related support discussion please refer to Technical Support options in the MongoDB documentation. Regards, |