---
title: "Adding and managing databases"
description: "Connect Metabase to your data sources, manage connection settings, and control how Metabase syncs and scans them."
url: "https://www.metabase.com/docs/latest/databases/connecting"
version: "65"
---

> For the complete documentation index, see [llms.txt](https://www.metabase.com/docs/llms.txt).

# Adding and managing databases

## Adding a database connection

To add a database connection:

1. Click the **grid** icon in the top right.
2. Select **Admin**.
3. In Admin settings, navigate to **Databases** > **Add a database**.
4. Fill out the fields for that database, and click **Save changes** at the bottom.

   The connection settings differ database to database. For the list of connection settings available for your database, click the link to your database below.

## Connecting to supported databases

The databases listed below have official drivers maintained by the Metabase team. Customers on [Pro and Enterprise](https://www.metabase.com/pricing) will get official support. For each database, Metabase supports the oldest supported version through the latest stable version.

- [Athena](https://www.metabase.com/docs/latest/databases/connections/athena.md)
- [BigQuery](https://www.metabase.com/docs/latest/databases/connections/bigquery.md) (Google Cloud Platform)
- [ClickHouse](https://www.metabase.com/docs/latest/databases/connections/clickhouse.md)
- [Databricks](https://www.metabase.com/docs/latest/databases/connections/databricks.md)
- [Druid](https://www.metabase.com/docs/latest/databases/connections/druid.md)
- [MongoDB](https://www.metabase.com/docs/latest/databases/connections/mongodb.md)
- [MariaDB](https://www.metabase.com/docs/latest/databases/connections/mariadb.md)
- [MySQL](https://www.metabase.com/docs/latest/databases/connections/mysql.md)
- [Oracle](https://www.metabase.com/docs/latest/databases/connections/oracle.md)
- [PostgreSQL](https://www.metabase.com/docs/latest/databases/connections/postgresql.md)
- [Presto](https://www.metabase.com/docs/latest/databases/connections/presto.md)
- [Redshift (Amazon Web Services)](https://www.metabase.com/docs/latest/databases/connections/redshift.md)
- [Snowflake](https://www.metabase.com/docs/latest/databases/connections/snowflake.md)
- [SparkSQL](https://www.metabase.com/docs/latest/databases/connections/sparksql.md)
- [SQL Server](https://www.metabase.com/docs/latest/databases/connections/sql-server.md)
- [SQLite](https://www.metabase.com/docs/latest/databases/connections/sqlite.md)
- [Starburst](https://www.metabase.com/docs/latest/databases/connections/starburst.md)
- [Vertica](https://www.metabase.com/docs/latest/databases/connections/vertica.md)

If you don't see your database listed here, see [Community drivers](https://www.metabase.com/docs/latest/developers-guide/community-drivers.md).

As of version 46.6.4, Metabase [no longer supports H2 connections](https://www.metabase.com/blog/vulnerability-post-mortem). But Metabase still ships with an H2 database to include an embedded application database.

## Connecting to databases hosted by a cloud provider

For provider-specific connection details, like connecting to a PostgreSQL data warehouse on RDS:

- [AWS's Relational Database Service (RDS)](https://www.metabase.com/docs/latest/databases/connections/aws-rds.md)

## Granting database privileges

For Metabase to connect, query, or write to your database, you must give Metabase a database user account with the correct database privileges. See [Database roles, users, and privileges](https://www.metabase.com/docs/latest/databases/users-roles-privileges.md).

## Syncing and scanning databases

See [Syncing and scanning](https://www.metabase.com/docs/latest/databases/sync-scan.md).

## Deleting databases

**Caution: Deleting a database is irreversible! All saved questions and dashboard cards based on the database will be deleted as well!**

Go to **Admin** > **Databases** > your database and click **Remove this database**.

## Restoring the Sample Database

If you've deleted the Metabase [Sample Database](https://www.metabase.com/glossary/sample-database), go to **Admin** > **Databases** and click **Bring the Sample Database back**.

## Troubleshooting

- [Troubleshooting database connections](https://www.metabase.com/docs/latest/troubleshooting-guide/db-connection.md)
- [Troubleshooting syncs, scans, and fingerprinting](https://www.metabase.com/docs/latest/troubleshooting-guide/sync-fingerprint-scan.md)
- Search or ask the [Metabase community](https://discourse.metabase.com/).
- Search for [known bugs or limitations](https://www.metabase.com/docs/latest/troubleshooting-guide/known-issues.md).

## Further reading

- [Metadata editing](https://www.metabase.com/docs/latest/data-modeling/metadata/metadata-editing.md).
- [Setting data access permissions](https://www.metabase.com/docs/latest/permissions/data.md).
- [Metabase at scale](https://www.metabase.com/learn/metabase-basics/administration/administration-and-operation/metabase-at-scale).
