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: