Skip to content

dexmendonca/mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

criar usuário normal

use dbnome

var user = { "user" : "website", "pwd" : "abc123", roles : [ { "role" : "readWrite", "db" : "dbnome" } ] }

db.createUser(user);

exit

criar usuário admin

db.createUser( { user: "user", pwd: "password", roles:[{role:'root', db:'admin'}] })

URI funcionando

mongodb://user:password@host:port/db?authSource=admin

About

Códigos uteis para o mongo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published