Use MongoDB with Java and need, through Java execute the following command in mongoDB:
db.grantRolesToUser( "joao", [ {role:"dbOwner",db:"loja"} ] )
That is, I need to add a role to an existing user, and I need to specify the database. Afte...
asked by
06.01.2016 / 16:24