|
Currently comma is missing in the command to add the MMS backup user in this page. If we copy this command, replace the username/password and run the command to add the user, it will fail with "SyntaxError: Unexpected identifier".
The command is like this in the doc:
use admin
|
db.addUser( { user: "<username>",
|
pwd: "<password>",
|
roles: [ "clusterAdmin",
|
"readAnyDatabase",
|
"userAdminAnyDatabase"
|
] //The comma is missing here
|
otherDBRoles: { local: ["readWrite"],
|
admin: ["readWrite"] }
|
} )
|
It should be:
use admin
|
db.addUser( { user: "<username>",
|
pwd: "<password>",
|
roles: [ "clusterAdmin",
|
"readAnyDatabase",
|
"userAdminAnyDatabase"
|
],
|
otherDBRoles: { local: ["readWrite"],
|
admin: ["readWrite"] }
|
} )
|
|