mongodb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
mongodb [2017/01/06 07:46] – 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 === | ||
< | < | ||
Line 7: | Line 7: | ||
</ | </ | ||
- | === 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.createUser({user: | > db.createUser({user: | ||
- | </ | ||
- | |||
- | ==== Authentication (For MongoDB < 2.4) ==== | ||
- | < | ||
- | $ mongo | ||
- | > use admin | ||
- | > db.addUser(" | ||
</ | </ | ||
mongodb.1483688805.txt.gz · Last modified: 2017/01/06 07:46 by felixonmars