From 3f85ddb98ad9abaab03835bc38ee08d7fc81786c Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 24 Jul 2014 20:59:11 +0200 Subject: [PATCH] added info about MongoDB 2.4 user setup --- docs/configuring/databases/mongo.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/configuring/databases/mongo.rst b/docs/configuring/databases/mongo.rst index 91d2e7f0e3..232dbf4de1 100644 --- a/docs/configuring/databases/mongo.rst +++ b/docs/configuring/databases/mongo.rst @@ -65,9 +65,18 @@ To add a new database called `nodebb`, type: To add a user to access the `nodebb` database, type: +For MongoDB 2.6.x + .. code:: > db.createUser( { user: "nodebb", pwd: "", roles: [ "readWrite" ] } ) + +For MongoDB 2.4.x + +.. code:: + + > db.addUser( { user: "nodebb", pwd: "", roles: [ "readWrite" ] } ) + **Note:** The role ``readWrite`` provides read or write any collection within a specific database to user.