Skip to navigation
How to use mongodb authentication
03.03.14
1. before you start mongodb with auth = true in /etc/mongodb.conf create a database called admin with full write and read a. mongo b. use admin c. db.addUser('admin', 'MYPASS') 2. now you can use the admin to create database specific admins. after restart with auth login: a. mongo b. use admin c. db.auth('admin','MYPASS') d. use MYDB c. db.addUser('dbadmin', 'MYPASS')
http://www.hacksparrow.com/mongodb-add-users-and-authenticate.html
Reply
Anonymous
Information Epoch 1736564734
Live free or die.
Home
Notebook
Contact us