mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-15 17:10:50 +01:00
Merge pull request #1858 from lukelarris/patch-1
Made it easier to paste command in MongoDB console
This commit is contained in:
@@ -67,9 +67,7 @@ To add a user to access the `nodebb` database, type:
|
||||
|
||||
.. 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" ] } )
|
||||
|
||||
**Note:** The role ``readWrite`` provides read or write any collection within a specific database to user.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user