MongoDB 3/5: Configuring the Root User and Authentication with Compass
Let's see how to create a root user on a local MongoDB instance and enable authentication — a fundamental step for securing the instance before exposing the database to any application.