Oct 10, 2018

[HDGEM] How to import csv file to mongodb / documentdb

$ mongoimport --host hdgem.com:10250 -u dbbig -p password --db goyun --collection my-collection --ssl --sslAllowInvalidCertificates --type csv --file ./hqgem.com.csv --headerline


You must specify --fields, --fieldFile or --headerline to import csv file.

See also:

Usage: mongoimport help



--
Posted By Blogger to HDGEM at 3/21/2017 11:46:00 AM