mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-04 21:15:55 +01:00
added info about MongoDB 2.4 user setup
This commit is contained in:
@@ -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: "<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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user