DB, ORM/🍃 mongoDB (shell)
mongoDB Atlas와 Robo3T 연결
DarrenKwonDev
2020. 12. 15. 00:24
아래 같은 오류가 생겼고, db.yourcollection.dropIndexes()를 해줘서 해결해야 했다.
MongoError: E11000 duplicate key error collection: KinoProject.likes index: userId_1 dup key: { userId: ObjectId('5fd6f0ebe4fc053c286cee18') }
그런데 이게 개발 환경이 아니라 이미 배포된 환경이었고, index를 drop해야 하는데 이게 참 atlas에서는 안되어서 robo3t와 연결해서 해결하기로 하였다.
courses.ics.hawaii.edu/ics314f19/morea/deployment/reading-atlas-robo3t.html
How to connect to Atlas from Robo3T | ICS 314, Fall 2019
How to connect to Atlas Mongo databases from Robo 3T It is not mandatory that you use Robo 3T to manage your Atlas database. You can do pretty much everything you need to do using their browser-based interface. That said, it can sometimes be convenient to
courses.ics.hawaii.edu
위에 써진 대로 천천히 따라하기만 하면 쉽게 연결할 수 있다.