import data into mongodb databse from .csv file in windows import data into mongodb databse from .csv file in windows mongoose mongoose

import data into mongodb databse from .csv file in windows


The primary mistake people do is try to import the csv file by issuing the mongoimport command while they are inside mongo Shell. The correct way of doing it is outside mongo shell. And ensure that you have the binary that you are trying to execute. In this case it is "mongoimport".


Yes you will have to get mongodb executable in windows.

After getting that, go to the bin directory in your mongodb installation and you will find the mongoimport.exe there.

Execute your command from there.