| This page explains how create new databases and collections in MongoDB compass as well as how to navigate between them. This page also explains how to remove databases and collections from your cluster. |
| Contents: – Create a Database in MongoDB Compass – Create a Collection in MongoDB Compass |
Create a database in MongoDB Compass
1. On the home page of the MongoDB Compass dashboard, make sure the Databases tab is selected and then click Create Database.

2. Enter the name of your database and then the name of your first collection. Make sure your names for either do not include spacing or special characters as this will result in an error.

| You will be able to edit or remove this cluster later on. You will also be able to add additional collections. |
3. Select whether or not you would like your collection to be Capped or use Custom Collation.

A Capped Collection is collection that is fixed in size and will delete the oldest files on record to make room for new data.

| If you are processing large amounts of data and are only interested in recent data for storage or analysis on this collection, this might be a good option to consider. |

| For more information on Capped Collection, see https://docs.mongodb.com/manual/core/capped-collections/ |
A Custom Collation is a collection that uses customized rules to filter stored data on a collection. These rules can also be used to view and analyze the data on a collection.

| If you are wanting to use a cluster for specific data sets, this might be a good option to consider. |

| For more information on using Custom Collation, see https://docs.mongodb.com/master/reference/collation/ |
4. Select Create Database.

5. To delete a database, navigate to the Compass home page and select the trash bin icon on the right side of the database listing.


| Do not remove the ‘local’ database from your cluster. |
Create a collection in MongoDB Compass
1. Select the linked name of the database you would like to create a collection in from the MongoDB Compass dashboard.

2. Select Create Collection on the top of the dashboard view.

3. Enter your collection name and select the collation or capped options if applicable.

| Collection names should not include spacing or special characters. Including these in a cluster name will result in an error. |

| For more information, see Capped Collection or User Custom Collation |
4. Select Create Collection.

5. To remove a collection, select the linked name of the database that holds the collection you wish to remove. Select the trash bin icon on the right side of the collection listing.
