[MongoDB] Authentication 인증 추가
Authentication의 필요성 보안을 위해.. Remote DB에 접속할 때 해킹을 막기 위함이다. 기본적으로 mongo는 admin이라는 db가 존재하는데, 여기에 사용자를 추가하면 된다. > use admin > db.createUser({ user: '[유저이름]', pwd: '[패스워드]', roles: ['[...관련 롤]'], }) 역할은 아래의 링크를 참조 https://docs.mongodb.com/manual/reference/built-in-roles/#database-administration-roles Built-In Roles — MongoDB Manual Docs Home → MongoDB ManualMongoDB grants access to data and command..
2022.02.08