Amani
Amani

Reputation: 18173

MongoDB - validating settings error

I'm trying to import a CSV file into MongoDB using the following command;

mongoimport -db results --collection socialogy --type csv --file "F:\Projects\pandas\results.csv" --headerline

MongoDB gives the following error message;

error validating settings: incompatible options: --file and positional argument(s)

What am I doing wrong?

Upvotes: 1

Views: 3671

Answers (1)

pe3k
pe3k

Reputation: 794

You seem to have typo in your query. See -db option part, it should be --db. This way your really mix arguments as error message says.

Upvotes: 5

Related Questions