From c7737f04419c515b3eaf7d21f07a9b42163cd832 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Wed, 28 Jun 2023 12:42:44 +0100 Subject: [PATCH] no longer using the deprecated command --- guides/ubuntu/pages/mongodb-install.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guides/ubuntu/pages/mongodb-install.md b/guides/ubuntu/pages/mongodb-install.md index a8a2ff2..177e5f4 100644 --- a/guides/ubuntu/pages/mongodb-install.md +++ b/guides/ubuntu/pages/mongodb-install.md @@ -110,7 +110,7 @@ You should see something like this: 1. Connect to MongoDB, so that we can create an admin user. Run the following command: ```bash -mongo +mongosh ``` 2. Switch to the `admin` database. Run the following command: @@ -157,13 +157,13 @@ security: 1. Connect to MongoDB, so that we can create a user. Run the following command: ```bash -mongo -u admin -p --authenticationDatabase admin +mongosh -u admin -p --authenticationDatabase admin ``` 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 +mongosh ``` 2. Switch to the database that you want to add a user to eg: `forum`. Run the following command: