no longer using the deprecated command

This commit is contained in:
Lee 2023-06-28 12:42:44 +01:00
parent 9719b96342
commit c7737f0441

@ -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: