diff --git a/guides/ubuntu/pages/mongodb-install.md b/guides/ubuntu/pages/mongodb-install.md index 48fa830..a8a2ff2 100644 --- a/guides/ubuntu/pages/mongodb-install.md +++ b/guides/ubuntu/pages/mongodb-install.md @@ -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: