Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

(Unauthorized) not authorized on admin to execute command

use admin;
db.grantRolesToUser('admin', [{ role: 'root', db: 'admin' }])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #authorized #admin #execute #command
ADD COMMENT
Topic
Name
2+9 =