Skip to content

Instantly share code, notes, and snippets.

@jasonmccay
Created November 5, 2011 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonmccay/1341650 to your computer and use it in GitHub Desktop.
Save jasonmccay/1341650 to your computer and use it in GitHub Desktop.
MongoImport Command used to Import Data into a MongoHQ Database
## Example of MongoImport Used to Import Data into a MongoHQ Database ##
mongoimport -h staff.mongohq.com --port 10097 -d import_example -c football_players -u mongohq -p****** --type csv --file ~/Desktop/football_players.csv --headerline
@xsurge83
Copy link

xsurge83 commented Jan 6, 2014

does this command work in the sandbox environment ? I had an auth error.

@gregmcpugh
Copy link

THANK YOU saved me so much time!
And yeah worked fine for me in sandbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment