mongodb
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mongodb [2017/01/05 06:24] – created felixonmars | mongodb [2017/01/06 07:47] (current) – felixonmars | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Authentication | + | ==== Authentication ==== |
| === Add A User Administrator as Per Recommended by MongoDB === | === Add A User Administrator as Per Recommended by MongoDB === | ||
| < | < | ||
| $ mongo | $ mongo | ||
| > db = db.getSiblingDB(' | > db = db.getSiblingDB(' | ||
| - | > db.addUser({user: " | + | > db.createUser({user: " |
| </ | </ | ||
| - | === Add A FULL PRIVILEGED User (For Unlocking Full Functionality | + | === Add A FULL PRIVILEGED User (to unlock full functionality |
| < | < | ||
| $ mongo | $ mongo | ||
| > db = db.getSiblingDB(' | > db = db.getSiblingDB(' | ||
| - | > db.addUser({user: " | + | > db.createUser({user: " |
| - | </ | + | |
| - | + | ||
| - | ==== Authentication (For MongoDB < 2.4) ==== | + | |
| - | < | + | |
| - | $ mongo | + | |
| - | > use admin | + | |
| - | > db.addUser(" | + | |
| </ | </ | ||
mongodb.1483597476.txt.gz · Last modified: by felixonmars
