Merge pull request #1894 from JonathanMH/patch-2

added info about MongoDB 2.4 user setup
v1.18.x
Julian Lam 11 years ago
commit fd78085c59

@ -65,10 +65,19 @@ To add a new database called `nodebb`, type:
To add a user to access the `nodebb` database, type: To add a user to access the `nodebb` database, type:
For MongoDB 2.6.x
.. code:: .. code::
> db.createUser( { user: "nodebb", pwd: "<Enter in a secure password>", roles: [ "readWrite" ] } ) > db.createUser( { user: "nodebb", pwd: "<Enter in a secure password>", roles: [ "readWrite" ] } )
For MongoDB 2.4.x
.. code::
> db.addUser( { user: "nodebb", pwd: "<Enter in a secure password>", roles: [ "readWrite" ] } )
**Note:** The role ``readWrite`` provides read or write any collection within a specific database to user. **Note:** The role ``readWrite`` provides read or write any collection within a specific database to user.
Step 7: Configure MongoDB Step 7: Configure MongoDB

Loading…
Cancel
Save