Docs Menu
Docs Home
/
MongoDB Compass
/

Connections Sidebar

On this page

  • Connections List
  • Connect to MongoDB
  • Connection Options

Note

Starting in version 1.44.0, you can connect to multiple MongoDB instances at once through Compass.

The Connections Sidebar on the left of the Compass window contains the following options:

  • icon to add new connections

  • icon to import and export connections

  • Search bar to search active connections

  • Connections list

Connections Sidebar
click to enlarge

The Connections list in the sidebar contains your favorite and saved connections. Favorite connections have a next to the connection name and always appear at the top of the connections list.

To connect to a saved or favorite deployment, click the name of the connection in the Connections list. Once you connect, Compass shows a success toast and displays a green dot next to the connection name.

If a connection error occurs, Compass shows a toast with error information and displays a red triangle next to the connection name. To see additional error information, click Review in the error toast.

To add a new connection to Compass, click the button at the top of the Connections Sidebar to open the New Connection modal. For more information, see Connect to MongoDB.

To switch between connections, click the name of the connection you want to interact with to open the Databases tab. When you open a database, MongoDB opens a new tab and labels it with the name of the MongoDB instance that contains that database. For more information about the Databases tab and instructions on viewing a database, see Databases.

To see connection options, hover over the name of the connection in the Connections list. Then, click on the icon to open a menu with the following items:

  • View performance metrics

  • Show connection information

  • Refresh databases

  • Disconnect

  • Copy connection string

  • Favorite (or Unfavorite)

  • Duplicate

  • Remove

To open the MongoDB Shell, click the icon on the right of the connection name.

Back

Connect