Last active
June 13, 2019 05:37
-
-
Save yuriburger/78866e1f3d475be7d977458fbcc361e9 to your computer and use it in GitHub Desktop.
[mongo import] Mongo Import JSON from commandline #mongo
This file contains 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
// vim: syntax=bash | |
mongoimport --db <dbname> --jsonArray --username <username> --password <passwd> --authenticationDatabase admin --drop --file <filename>.json --collection <collectionname> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment