- Choose if you want to host a database yourself or use a cloud service
- Register here
- You will be prompted to create a 'cluster,' choose the free tier
- For an authentication method, choose 'Username/Password,' copy the password and select 'Create User'
- In the connection, choose 'My Local environment' and click 'Add Your Current IP Address'
- Now select 'Finish and Close'
- Now on the left side, select 'Database'
- Wait for the database to load and select 'Browse Collections'
- Select 'Add My Own Data'
- For database name, enter 'MCSS'
- For collection name enter 'scannedServers'
- Now select 'Create'
- On the left, select 'Database' again
- Now select 'Connect'
- Select 'Drivers' -> 'Python' -> '3.12 or later'
- Scroll down and copy the connection string
ex:
mongodb+srv://pilot1782:[email protected]/test?retryWrites=true&w=majority
- Now paste the connection string into the
MONGO_URL
variable inprivVars.py
- Follow this guide
- Open the cli to mongosh
- Run
use MCSS
to create the MCSS database - Run
db.createCollection("scannedServers")
to create the scannedServers collection - Now paste the connection string into the
MONGO_URL
variable inprivVars.py