mongoimport is intended to run in command prompt and not in the mongo shell. Try exiting out of the shell and running the command.
More Related Contents:
- How to use mongoimport to import CSV files?
- Random record from MongoDB
- Find in Double Nested Array MongoDB
- MongoDB: upsert sub-document
- Add new field to every document in a MongoDB collection
- Check that Field Exists with MongoDB
- How do I update Array Elements matching criteria in a MongoDB document?
- Get a count of total documents with MongoDB when using limit
- ‘Failed to unlink socket file” error in MongoDB 3.0
- To what level does MongoDB lock on writes? (or: what does it mean by “per connection”
- Mongo order by length of array
- Best practice to maintain a mgo session
- MongoDB group by array inner-elements
- Exception: can’t convert from BSON type EOO to Date
- Delete everything in a MongoDB database
- Mongodb Aggregation Framework: Does $group use index?
- How to return array of string with mongodb aggregation
- How to return just the nested documents of an array from all documents
- Mongoose’s find method with $or condition does not work properly
- Using MongoDB $pull to delete documents within an Array
- How does MongoDB deal with concurrent updates?
- MongoDB print distance between two points
- mgo – query performance seems consistently slow (500-650ms)
- How to solve mongoDB related issue efficiently? [closed]
- Geospatial $near within current document field value
- querying a collection without passing schema in mongoose
- How to connect to external MongoDB instance in Meteor?
- Find documents whose array field contains at least n elements of a given array
- Generating a Structure for Aggregation
- What is the difference between save and insert in Mongo DB?