Update mongodb debian
parent
c11b9b6f79
commit
9dc76afd77
|
|
@ -30,6 +30,20 @@ db.createUser(
|
||||||
security:
|
security:
|
||||||
authorization: enabled
|
authorization: enabled
|
||||||
```
|
```
|
||||||
5. Restart `mongod` with `sudo systemctl restart mongod`
|
|
||||||
6. Drop back into `mongosh` with authentication `mongosh -u 'admin'`, entering the password on prompt
|
|
||||||
|
|
||||||
|
### Setting up the Canopy User/DB
|
||||||
|
1. Restart `mongod` with `sudo systemctl restart mongod`
|
||||||
|
2. Drop back into `mongosh` with authentication `mongosh -u 'admin'`, entering the password on prompt
|
||||||
|
3. Switch over to the admin database `use admin`
|
||||||
|
4. Create the canopy user:
|
||||||
|
```
|
||||||
|
db.createUser(
|
||||||
|
{
|
||||||
|
user: "canopy",
|
||||||
|
pwd: passwordPrompt(),
|
||||||
|
roles: [
|
||||||
|
{ role: "dbOwner", db: "canopy" },
|
||||||
|
]
|
||||||
|
}
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue