Thanks so much, very helpful! I am working on my final project for a college class and it required me to import a csv file into mongodb. This video was extremely easy to follow and it took me a total of 10 minutes from installation of mongodb to working with my csv in the mongo command line. You definitely saved me 4 hours!!! 😁
Thank you so much! I've been trying to figure how to get the mongoimport tool. It mentions in the documentation that it no longer comes with mongodb, but it doesn't mention how to get it. Much appreciated again.
Thanks man!!! I’m doing some homework and been trying to figure this out for a long time as well. Your video was straight to the point helpful! Great job.
Thanks a lot for the video! 👍🙏 One side note, you can save the path to the mongo executables as PATH environment variable. That will save some time by eliminating the need to copy the entire path to the bin and doing a cd before running mongo.exe or other executables present in bin directory.
Why didn't you use the 'Compass' tool to import the .csv file. It's easier. I just imported 32,000 documents in my collection. You are a cool guy and I love your presentation way. Also, I learned a new way to import .csv in the MongoDB database collection via 'Command Prompt'. Thank you :)
Thank you so much for this! Great job! So helpful and clear and I'm even using a mac and your clarity made it easy to understand as to how it applied to the mac environment.
Hi, your video was really helpful for me,thanks man!One question I would like to ask,I have a requirement of importing multiple csv files into mongdb,for that do I really need to write query for each csv file,or there is a way by which I can do it all at once?
Hi! How did you manage to have an excel with values separated but tabs (or let's say heach value on its own cell) and still, even the extension of the file is indeed .csv, and work properly. I do the exact thing an the items get saved as {name,surname: john dohner}. Thanks!
not sure if this is a mongodb version 6.0 but when I type the command mongoimport, I got "'mongoimport' is not recognized as a internal or external command, operable program or batch file". How do I fix it??
An lazy method without copying anything, and don't dealing with paths would be to use the MongoDB Compass which should be directly installed with MognoDB. Import tools etc, are already included. Only be sure MongoDB ist started, and then create a new database and add the data via new collection.
Not sure why but my Mongo download already had the import exe within. Finding the mongodb msi link was frustrating for me because with firefox mongo's website didn't have a link to the msi but was there when I used google chrome.
Haha, yes - I tried so many things... I was updating my computer's registry even trying to figure it out. I don't know why they "hide" how to do this simple task!
Hi for those who are trying with version 6.0.X i had to do this command to make it work : mongoimport --db your_db_name --collection your_collection_name --drop --type csv --headerline --file your_csv_file.csv