-
use admin db.createUser({user:'test1', pwd:'test1', roles:['root']})
기타
db.createUser({user:"test1", pwd:"test1", roles:["readWrite", "userAdmin"]})
'Mongodb' 카테고리의 다른 글
Update (UpdateOne, UpdateMany) (0) 2022.12.27 Mongodb 단순 예제 (typescript) (0) 2022.12.27 help command (0) 2022.12.26 MongoDB Shell (0) 2022.12.26 MongoDB 접속 명령 (1) 2022.12.24 MongoDb 다운로드 설치 (0) 2022.12.24 mongodb cloud - db, table 설정 (0) 2022.12.24 mongodb cloud - network ip 주소 설정 (0) 2022.12.24