Tuesday, February 14, 2012

MongoDB security

how to add auth function in your mongoDB. > use admin > db.addUser("root", "rootpassword") add user to your tables > use table1 > db.addUser("user1", "password1") add read only user > use table1 > db.addUser("user2", "password2", true)

No comments:

Post a Comment