[MongoDB] atlas mongo mongoimport를 이용하여 로컬파일 업로드 하여 컬렉션 생성

김택주·2023년 2월 6일

Mongo DB

목록 보기
7/9

출처: https://www.mongodb.com/community/forums/t/how-to-load-a-csv-file-to-mongodb-atlas/106571/2
https://stackoverflow.com/questions/25850467/where-is-mongoimport-installed-on-mac-os-x

mongo-database-tools 설치


mongoimport 가 기본설치 되지않아 따로 설치가 필요

brew install mongodb/brew/mongodb-database-tools

mongoimport 업로드

mongoimport --uri mongodb+srv://id:<password>@address/collectionName --collection zip --drop --file zips.json --authenticationDatabase admin

atlas mongo connect 클릭 후

Connect using MongoDB Compass 를 클릭하여

나온 명령어를 사용

0개의 댓글