몽고1 MongoServerError: Authentication failed. MongoServerError: Authentication failed. 또는 MongoServerError: not authorized on admin to execute command MongoServerError: Authentication failed. 에러 내용 mongosh로 유저 생성 등의 초기화 과정을 수행하기 위해 db.auth()를 진행했지만 위와 같은 오류를 만났습니다. MongoServerError: Authentication failed. 에러 원인 놀랍게도 MONGO_INITDB_ROOT_USERNAME=root MONGO_INITDB_ROOT_PASSWORD=passwd 등으로 root의 username과 password를 설정해도 해당 username과 password로 바로.. 2023. 5. 15. 이전 1 다음