Created
March 4, 2019 18:48
-
-
Save leonsomed/bed00ae2d415b3ff9a80c1d1d113be44 to your computer and use it in GitHub Desktop.
import csv to mongodb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mongoimport --host=127.0.0.1 -d dbName -c collectionName --type csv --file filename.csv --headerline --columnsHaveTypes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment