From 9719b9634205f0bb2dcb0eaff595edd52a9796c8 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Wed, 28 Jun 2023 12:39:06 +0100 Subject: [PATCH] make it make more sense --- guides/ubuntu/pages/mongodb-install.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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: