@Marine1,You mongoimport syntax should be like as mention below example.
mongoimport --db test --collection stuff --type csv C:\data\Employee.csv --headerline
In the above example
collection name and
Employee.csv is the file which i want to import in MongoDB database through mongo shell. And the
Employee.csv file location is
In My case it has worked properly.
In your case the syntax should be like that
mongoimport --db databasename --collection collectionname --type csv locationofbouffe.csv --headerline
The syntax should be in the above mention format, if you want to import the
header of the file then mention
Note:- Make sure you are running the above mention script in inside the
BIN of MongoDB Server.
Very Important Note :
mongoimport would be to import a non-BSON file (such as JSON or CSV) into mongodb.