Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Jokes
Docs Menu
Docs Home
/ /

Create, View, and Drop Databases

You can use the Atlas UI to manage the databases in your clusters.

The following table describes the roles required to perform various actions to a database in the Atlas UI:

Action
Required Roles

Create Databases

One of the following roles:

View Databases

Drop Databases

One of the following roles:

To create a database through the Atlas UI:

1
  1. If it's not already displayed, select the organization that contains your project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your project from the Projects menu in the navigation bar.

  3. In the sidebar, click Data Explorer under the Database heading.

    The Data Explorer displays.

Note

You can also go to the Clusters page, and click Data Explorer under the Shortcuts heading.

2

In the Connections sidebar, select or hover over your cluster and click the icon to open the Create Database dialog box.

3

Enter the Database Name and the Collection Name to create the database and its first collection.

If you want to use custom collation on the collection, select the Use Custom Collation checkbox and select the desired collation settings.

Important

Don't include sensitive information in your database and collection names.

For more information on MongoDB database names and collection names, see Naming Restrictions.

4

Select whether the collection is a time series collection. If you select to create a time series collection, specify the time field and granularity. You can optionally specify the meta field and the time for old data in the collection to expire.

5

Upon successful creation, the database and the collection appears in the Connections sidebar.

To view the databases and collections in the deployment:

1
  1. If it's not already displayed, select the organization that contains your project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your project from the Projects menu in the navigation bar.

  3. In the sidebar, click Data Explorer under the Database heading.

    The Data Explorer displays.

Note

You can also go to the Clusters page, and click Data Explorer under the Shortcuts heading.

To launch MongoDB Charts to visualize data in your databases and collections:

1
  1. If it's not already displayed, select the organization that contains your project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your project from the Projects menu in the navigation bar.

  3. In the sidebar, click Data Explorer under the Database heading.

    The Data Explorer displays.

Note

You can also go to the Clusters page, and click Data Explorer under the Shortcuts heading.

2

To visualize data in MongoDB Charts from the Atlas UI, click Visualize Your Data when viewing a specific database or collection. Charts loads the data source and you can start building a chart in the Charts view. For detailed steps, see Build Charts.

To drop a database, including all its collections, through the Atlas UI:

1
  1. If it's not already displayed, select the organization that contains your project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your project from the Projects menu in the navigation bar.

  3. In the sidebar, click Data Explorer under the Database heading.

    The Data Explorer displays.

Note

You can also go to the Clusters page, and click Data Explorer under the Shortcuts heading.

2

In the Connections sidebar, select or hover over the database to drop and click on the trash can icon. A confirmation dialog appears.

3

Confirm by typing the name of the database, and click Drop Database.

Back

AI & Data Usage

On this page