Tested on Ubuntu 18.04

This script creates a new MongoDB database and database user.

Usage:

bash <(curl -sSL https://jrussell.sh/new-mongo)

Raw Script Contents