MongoDB: MLab Database Creation
Setting up a new database
The instructions on this page assume that you’ve already done the initial set up steps on the page MongoDB: MLab to sign up for an mlab account, and create a so-called “new private environment”.
Setting up a new deployment (database)
To set up a new deployment (which is what MongoDB calls a database), start from the main page. In the section with the heading “Mongo DB Deployments” click on the button that says “Create New”, as shown here:
Choose Single-Node to get to the free plans
On the screen that follows, you have to hunt a bit to find the free plans.
The first step is to click the “Single-Node” button, as shown in the picture below.
Then, choose one of the free Sandbox plans
The screen that follows has buttons for Amazon, Google and Microsoft cloud services. As of this writing (November 2016), there is a free sandbox plan based on each of those providers, but each is offered in only one data center so you may have to hunt a bit to find the right settings. The image below shows one example, based on Microsoft Azure. Examples of the others are available if you click through the links below.
In any case, enter a database name, and click the “Create new Mongo DB Deployment” button.
Click to see free sandbox examples based on Amazon Google. You may have to scroll down in those, past the price tables, to get to the place where you Enter the database name and click the create button
After creating the database, create a User and a Collection
After creating the database, you must create at least one “User” and at least one “Collection”.
Instructions for that are on a separate web page: MongoDB: mlab database users and collections
More on MongoDB: MLab Database Creation
- MongoDB: Java—Accessing MongoDB via Java
- MongoDB: MLab—A specific cloud provider of MongoDB services
- MongoDB: MLab Database Creation—Setting up a new database
- MongoDB: MLab Databases, Users and Collections—Next steps after creating a database
- MongoDB: Python—Accessing MongoDB via Python
- MongoDB: Spring Boot (Java)—Accessing MongoDB via Spring Boot