how to mongoimport data to deployed meteor app?
meteor, mongodb
Solution
OK got it. This helped: http://docs.mongodb.org/manual/reference/connection-string/
mongoimport --host meteor.m0.mongolayer.com --port 27017 --username client --password e63aaade-xxxx-yyyy-93e4-de0c1b80416f --db kanjifinder_meteor_com --collection kanji --type csv --file c:\kanjifinder\kanjifinder.csv --headerline
Problem
UPDATE: this post applied to meteor.com free hosting, which has been shutdown and replaced with Galaxy, a paid Meteor hosting service I'm using this command ``` C:\kanjifinder>meteor mongo --url kanjifinder.meteor.com ``` to get access credentials to my deployed mongo app, but I can't get `mongoimport` to work with the credentials. I think I just don't exactly understand which part is the `username`, `password` and `client`. Could you break it down for me? result from server (I modified it to obfuscate the real values): ``` mongodb://client:e63aaade-xxxx-yyyy-93e4-de0c1b80416f@meteor.m0.mongolayer.com:27017/kanjifinder_meteor_com ``` my mongoimport attempt (fails authentication): ``` C:\mongodb\bin>mongoimport -h meteor.m0.mongolayer.com:27017 -u client -p e63aaade-xxxx-yyyy-93e4-de0c1b80416f --db meteor --collection kanji --type csv --file c:\kanjifinder\kanjifinder.csv --headerline ```