forked from Fascinated/docs
make it make more sense
This commit is contained in:
parent
d71eb26037
commit
9719b96342
@ -158,11 +158,13 @@ security:
|
||||
|
||||
```bash
|
||||
mongo -u admin -p --authenticationDatabase admin
|
||||
# or if you didn't secure MongoDB, run the following command:
|
||||
mongo
|
||||
```
|
||||
|
||||
This will ask you for the password that you set earlier in the Securing MongoDB section.
|
||||
This will ask you for the password that you set earlier in the Securing MongoDB section, or if you didn't secure MongoDB, run the following command:
|
||||
|
||||
```bash
|
||||
mongo
|
||||
```
|
||||
|
||||
2. Switch to the database that you want to add a user to eg: `forum`. Run the following command:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user