How a self-hosted Metabase connects to your databases
A self-hosted Metabase connects to your warehouses and databases through drivers, and the first question for your team is whether a given driver is one Metabase maintains itself. Metabase maintains official drivers for Athena, BigQuery, ClickHouse, Databricks, Druid, MongoDB, MariaDB, MySQL, Oracle, PostgreSQL, Presto, Redshift, Snowflake, SparkSQL, SQL Server, SQLite, Starburst and Vertica. If your sources are on that list, the connection is covered by Metabase's own driver development. If they are not, Metabase documents community drivers as a separate route, and those drivers carry different support expectations that you should plan for before you rely on them for reporting.
Support is the part most often missed in procurement. Metabase states that customers on the Pro and Enterprise plans get official support for its official drivers, and that it supports each database from the oldest supported version through the latest stable version. On Open Source, you can still connect to the officially listed databases, but the support commitment is not part of the free edition. Before you choose a plan, confirm in writing which of your source databases and versions Metabase covers, and check the current plan terms on the Metabase pricing page because plan features change over time.
Build the inventory before you install. List every source, its engine and version, whether it is a managed cloud service or self-managed, and whether it sits behind a private network path. Then check each one against the official list and mark the community-driver candidates for a proof of concept. Your database versions also matter: Metabase supports versions from the oldest supported release through the latest stable one, so a source running an unsupported engine version is a risk to resolve with its owner before connection work begins. Confirm the exact version ranges with Metabase's connection documentation, since these ranges are the reference for your own support plan.
Official drivers, community drivers and unsupported sources
Metabase maintains official drivers for 18 database families, including PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Snowflake, BigQuery, Redshift, Databricks and ClickHouse. Metabase states that customers on Pro and Enterprise get official support for these drivers, and that each database is supported from the oldest supported version through the latest stable version. The support statement for Open Source and Starter is not stated on this topic, so confirm it with Metabase in writing before you commit.
- Who maintains it: Metabase maintains the driver code and the list of officially supported databases.
- Support on Pro and Enterprise: Official support covers the official drivers, from the oldest supported database version through the latest stable version.
- Support on Open Source and Starter: Confirm with Metabase what applies to your plan, because the support statement above is tied to Pro and Enterprise.
- What you test yourself: Your exact database version, network path, service account permissions, sync time on your largest tables and query behavior under your permission model.
Check your database names and versions against the list on Metabase's connection documentation before you finalize the design.
Databases that are not on Metabase's official list may be reachable through community drivers, which Metabase documents separately from the official list. Official driver support does not extend to them on the basis of Metabase's statements, so treat each community driver as a component your team must evaluate, install and own until the documentation and the driver's publisher confirm what they support.
- Who maintains it: Confirm the maintainer for each driver in Metabase's documentation and in the driver's own project records.
- Support on Pro and Enterprise: Official driver support does not cover community drivers according to the statements on this topic, so ask in writing what, if anything, applies to your plan.
- Support on Open Source and Starter: No support terms for community drivers are stated here, so ask Metabase and the driver publisher directly.
- What you test yourself: Installation on your Metabase version, compatibility with your target database version, the authentication method you need, and whether sync, filters, and permissions behave as your team expects.
Ask for the driver's release history, its supported database versions and a named maintainer before you place it in front of business users.
Some sources have neither an official driver nor a community driver that fits your database version and security requirements. In those cases the decision moves from Metabase configuration to data architecture. The team either exposes the data through a database Metabase supports officially, or it chooses another tool for that source. Plan tier does not change this situation, because the support statements for official drivers do not apply to a source without a working path.
- Who maintains it: Nobody on Metabase's side, so the data owner or the team that builds the export or replica owns the path.
- Support on any plan: Metabase's official driver support does not apply to a source without a working driver, so budget for ownership inside your own organization or with a partner you engage directly.
- Common workarounds: Replicate the data into a database on the official list, such as PostgreSQL or a supported warehouse, using a pipeline your team operates.
- What you test yourself: Freshness of the copy, schema drift between the source and the copy, access rights on the copy and whether row-level restrictions carry over.
Before you choose a workaround, confirm whether the source vendor offers a supported driver or export path, and name the owner of any copy you create.
What you need before connecting a database
Six items need to be in place before a self-hosted Metabase can query a warehouse. Some sit on the Metabase side, some on the database side, and one decision sets the level of vendor support you can expect for the connection.
A supported Metabase version
Start from the version support lifecycle, not from whatever image you pulled last year. Metabase 64 is the current LTS release, with end of life on 1 December 2027, and Metabase 65 is a monthly release. LTS releases get support for 14 months, while non-LTS releases usually reach end of life after about 2 months. Confirm which release is current on the day you build, and pick the line your upgrade plan can keep up with.
Version supportA reachable network path
The Metabase host must open a connection to the database port, which means checking security group rules, network ACLs, firewalls and any private DNS names the connection string uses. Test from the Metabase host itself, since a developer laptop on the VPN proves little. If the warehouse sits behind a bastion, decide whether an SSH tunnel or a private network route is the better long-term design.
A read-only database account
Create a dedicated account for Metabase with only the SELECT and metadata privileges it needs for the schemas you want to expose. Do not reuse an administrator or ETL login. Metabase stores the credentials in its application database, so the account's blast radius is what limits damage if that store is exposed. Record the account owner and rotation process before the connection goes live.
TLS certificates where required
If the database enforces encrypted connections, the Metabase host must trust the certificate authority that signed the server certificate. Get the root certificate from the database owner, place it where the Metabase runtime can read it, and confirm the connection validates the chain instead of skipping verification. Test the connection after each certificate rotation, because a rotated certificate often breaks connections without warning.
A plan that matches the support you need
Official drivers on the supported list are available in every edition, but official support for those drivers is a paid benefit. The open source and Starter plans do not include it, while Pro and Enterprise customers receive it. Ask which plan your organization needs before you rely on a driver in production, and write the support expectation into the scope with your partner or vendor.
Metabase pricingA separate application database
The application database stores Metabase's own settings, users, saved questions and dashboards. It is not the same as the warehouses you query, and it needs its own backup, sizing and access rules. Metabase ships with an embedded H2 database for demos and recommends PostgreSQL for production. Plan that database first, then add data connections, so a failure in one does not hide problems in the other.
Application database docsHow to add a database connection in Metabase
This sequence takes a database from a driver check to a verified connection in a self-hosted Metabase, so the first question people run returns results you can confirm against the source. Each step ends with a check you can record before moving on.
Confirm the driver is official for your database
Start by checking your database against Metabase's list of official drivers, which covers Athena, BigQuery, ClickHouse, Databricks, MongoDB, MySQL, PostgreSQL, Redshift, Snowflake, SQL Server and others. If your database is not on that list, plan for a community driver and confirm with the Metabase documentation how it is installed and supported before going further. Record the driver name and the database version you will connect to. The step is done when the driver is on the official list or a community driver has been approved by your team for that database. Confirm official support terms for your edition, since Metabase documents official support for its official drivers on Pro and Enterprise plans.
Create a read-only database account
Ask the database administrator to create a dedicated account for Metabase that can only read the schemas and tables your reporting needs. Grant select access on those objects, and do not grant write, DDL or administrative privileges. Use a password or key that your secrets process can store and rotate, and keep it out of shared notes. The step is done when a login with that account succeeds from a database client and a write attempt is refused, which proves the account is read-only.
Set network path and TLS settings
Confirm that the Metabase host can reach the database host and port through your firewall rules, security groups or private network path. Decide whether the connection uses TLS and obtain the server certificate chain your database requires, then configure Metabase to validate it rather than trusting any certificate. If the database sits behind a bastion, plan the SSH tunnel settings now. The step is done when a connection test from the Metabase host, using the same network path as production, completes with a secure session and no certificate warning.
Add the connection in admin settings
As a Metabase administrator, open the admin settings, go to the databases section and add a new database. Select the official driver, enter the host, port, database name and the read-only account, then enable the TLS option you configured in the previous step. Save the connection and confirm that Metabase reports a successful connection. The step is done when the database appears in the list with a successful status and no authentication or certificate errors in the Metabase logs.
Run the initial sync and field scan
Let Metabase run its initial metadata sync, which reads table and column definitions, and its field value scan, which samples values for filters. Check which schemas were included and exclude any that hold data your groups should not see before people start querying. Review how long the sync took in your environment and whether it adds load to the warehouse during business hours. The step is done when the expected schemas and tables appear in the data browser and the sync shows as complete in the database details.
Verify a test question against a known result
Build a simple question in the query builder against a table where someone on your team knows the exact row count, such as a reference table or a recent load with a published total. Compare the result with the count the source system reports, and then run the same question as native SQL to confirm both paths agree. The step is done when the returned count matches the source, which proves the connection, the account permissions and the table mapping are all working. Record the question and the expected value so the check can be repeated after upgrades or credential rotation.
What official driver support depends on and what to confirm
Official driver support in Metabase is tied to your plan and to the database version, not only to the driver name. Metabase says customers on its Pro and Enterprise plans receive official support for the official drivers, and that it supports each database from the oldest supported version through the latest stable version. A self-hosted Open Source deployment therefore has no contractual support path for a warehouse connection, even when the driver ships with Metabase. Before you rely on a connection in production, confirm on your plan that the database is on the official list and that the support terms cover your Metabase edition.
The version range is the part most teams miss. Before you upgrade either Metabase or the database, check Metabase's current documentation for the oldest and newest database versions it supports, then compare that range with your vendor's own version support policy. Note which database versions are end of life on the vendor side, because a version Metabase still lists may already be unsupported by the vendor for security fixes. Run the upgrade in a pre-production environment with a copy of your Metabase application database, and query representative tables after the change, since a driver that connects is not the same as a driver that returns correct results.
Databases outside the official list may still be reachable through community drivers, which Metabase documents separately. Those drivers sit outside the official support model described above, so Metabase's version commitments do not apply to them and you should not assume they will track database upgrades. Treat each community driver as a component you own: pin its version, test queries, sync behavior and permissions against each database upgrade, and record who is responsible for fixing it when a release breaks it. Ask any implementation partner to state that ownership in the written scope.
How database users, schemas and Metabase permissions map
This table maps each layer of a Metabase database connection, from the account on the source database to the group that receives access in Metabase. Read it top to bottom when you set up a connection, then use the verification step to confirm each layer behaves as intended. The main takeaway is that the database account and the schemas you sync set the outer limit, while Metabase group permissions only decide what each internal group can see from what has been synced.
| Layer | Metabase setting or database object | Verification step |
|---|---|---|
| Database account | Read-only user the connection string or connection form uses, granted only the schemas and tables Metabase needs | Log in as that user outside Metabase and confirm it cannot write or read unlisted schemas |
| Schemas or catalogs synced | Schema filters in database sync settings, limited to the datasets analysts need | Confirm excluded schemas do not appear in the data browser after the next sync |
| Official driver in use | Database type selected from the official driver list, such as PostgreSQL, MySQL or Snowflake | Check the driver name in Admin settings and confirm the database version is one the driver supports |
| Community driver (if used) | Community driver installed for a database not on the official list, with support handled separately | Record the driver source and version, and confirm which support terms apply before rollout |
| Metabase data permissions | Per-group settings for view and query access on each database, schema and table | Sign in as a test user in each group and confirm only the intended data appears |
| Group receiving access | Metabase group that holds the data permissions, with people added to it from the admin panel | Review group membership and confirm it matches the access model your team approved |
| Row and column controls | Not configured in this topic. Availability depends on plan and database type, to be confirmed in the permissions topic | Confirm the plan and database type support these controls before relying on them |
Security settings for database connections
A Metabase database connection is a standing path from the analytics layer into your data, so its security depends on several controls working together. The cards below cover the credentials, permissions, encryption, secret storage, network path and administrative access that govern each connection.
Use a dedicated read-only credential
Create a separate database user for each Metabase connection and grant it only read access, never the account used by pipelines or administrators. Metabase runs queries as that user, so a write grant on the account would let any question or model that reaches the database change data. Ask your DBA to confirm the grant set with SHOW GRANTS or the equivalent for your engine, and to rotate the password on a schedule your team can support.
Limit schema and table access
Grant the Metabase user access only to the schemas and tables that the approved analytics content needs, rather than the whole database. Metabase syncs and scans what the user can see, so tables left visible to the account appear in search, autocomplete and sample previews for everyone with access to that connection. Review the list of synced schemas whenever a new dataset is added, and treat sensitive columns such as personal identifiers as a separate decision.
Encrypt connections and validate certificates
Require TLS between the Metabase host and the database so queries and credentials do not cross the network in clear text, and enable certificate validation rather than accepting any server certificate. The mechanics of trusting a root certificate are covered in the SSL validation topic, so check there for the steps. Confirm with your database team that the server enforces encryption for this user, not only that the client asks for it.
Protect stored connection secrets
Metabase stores database passwords in its application database, and it encrypts them with the encryption secret key you set at installation. Keep that key outside the application database and back it up in your secrets system, because losing it leaves stored connection details unreadable after a restore. Confirm how your deployment supplies the key, and make sure the application database backups are protected to the same standard as the warehouse credentials they contain.
Scope network paths to the Metabase host
Allow inbound connections to the database only from the Metabase host or its outbound address, and block other sources at the firewall or security group. This keeps a leaked credential from being usable from a developer laptop or an unrelated server. If the warehouse sits behind a bastion, the private network path is usually the more controlled design, and the SSH tunnel topic explains the trade-offs of tunneling.
Audit who can edit connections
Limit database connection management to a small administrator group, because editing a connection can redirect Metabase to another host, swap in a different credential or enable a broader sync. Review that group at each access review and check Metabase's activity records for connection changes, keeping in mind that the audit features for usage analytics and auditing are included only on Pro and Enterprise plans. On Open Source, record connection changes through your change process and your own review of the configuration.
Why a database connection fails and how to fix it
This table lists the failures most often seen when a self-hosted Metabase connects to a warehouse, with the likely cause, the check to run and the fix for each. Work down the rows in order, because network and certificate problems hide authentication and privilege problems that appear after them.
| Failure | Likely cause | Check to run | Fix |
|---|---|---|---|
| Connection refused or timeout | Firewall or security group blocks the Metabase host, or the database listens only on a private interface | Test the port from the Metabase host with a basic network client, and confirm the database listener address | Open the database port from the Metabase host only, or route through a private path or SSH tunnel |
| Certificate validation error | Server certificate is signed by a CA that Metabase does not trust, or the hostname does not match | Compare the certificate chain and host name with the SSL settings in the connection form | Add the root certificate to the trust store used by the Metabase JVM or container, and match the host name exactly |
| Authentication failure | Wrong password, a rotated secret, or an expired token such as a personal access token or OAuth credential | Log in to the warehouse with the same credential outside Metabase, and check the token expiry date | Rotate the credential in the warehouse, update the connection in Metabase, and set a reminder before the next expiry |
| Empty schemas or missing tables | The connecting user lacks USAGE, SELECT or metadata privileges on the schema or objects | Run a metadata query as that user and compare its results with what the admin account sees | Grant read privileges on the required schemas to the Metabase user, then run a manual sync |
| Sync fails on a large catalog | Metabase scans too many schemas, tables or fields, which runs into timeouts or the warehouse's limits | Review the sync and scan settings and the count of schemas and tables in the connection | Limit sync to the schemas people need, schedule scans off-hours, and raise timeouts only after narrowing the scope |
| Community driver treated as supported | The database is not on Metabase's official driver list, so a community driver is in use and its support terms differ | Check the driver type shown for the connection and compare it with Metabase's official driver list | Confirm support terms before rollout, and either plan for community support or choose an official driver path |
| Official support not available | Official driver support is listed for Pro and Enterprise customers, so an open source instance has no vendor support for driver issues | Confirm the plan on the instance and whether the driver issue falls under official support | Ask the vendor about support options for your plan, or budget for internal ownership of driver upgrades |
How Metabase reaches your databases across the network
The diagram starts with users signing in to the Metabase application server inside your trust boundary. Metabase reads its own settings and saved content from the application database, which should be PostgreSQL in production, and sends queries to the warehouse over the network path you open. The decision point is the driver: a database on Metabase's official list uses an official driver, while anything else depends on a community driver. Check that every hand-off crosses only the paths your security team has approved, and confirm the official support status for your plan before you commit.
Query path from users through Metabase to official or community-driver databases.
Questions buyers ask about Metabase database connections
Can Metabase connect to a database that is not on the official driver list?
Yes, in many cases, but only through a community driver, which is a different support position from an official driver. Metabase lists official drivers for Athena, BigQuery, ClickHouse, Databricks, Druid, MongoDB, MariaDB, MySQL, Oracle, PostgreSQL, Presto, Redshift, Snowflake, SparkSQL, SQL Server, SQLite, Starburst and Vertica. Databases outside that list may be reachable through community drivers, which Metabase documents separately. Before you rely on one, have your team test the driver against your database version, your authentication method and your largest tables, check its maintenance history, and decide who will patch it when a Metabase upgrade breaks it. Metabase's official support does not extend to community drivers in the same way.
Does official driver support require a Pro or Enterprise plan?
Metabase says customers on Pro and Enterprise get official support for its official drivers. The connection itself is not gated by plan in the way that SSO is: the official drivers are part of the software, so a self-hosted Open Source instance can still connect to them. What changes with the plan is the support you can call on. If your team runs Open Source or Starter and a driver fails after an upgrade, you will be debugging it yourselves or with a partner. Confirm the current plan terms on Metabase's pricing page before you budget, because plan contents can change.
Which database versions does Metabase support for each official driver?
Metabase says it supports each database from the oldest supported version through the latest stable version. That means your database version matters: if your warehouse is older than the oldest version Metabase supports, or uses a feature Metabase does not handle, you have a compatibility gap to plan for. Ask the database owner for the exact engine version and check it against Metabase's documentation for that driver before you pick a Metabase release. Keep the database and Metabase upgrade calendars in view together, since a database upgrade can change what the driver expects.
What must our team do itself, and what does a partner deliver?
Your team owns the decisions that only it can make: which databases are in scope, which data each group may see, which service accounts exist, and who approves network paths and credentials. A partner typically delivers the work your team does not have time to build: creating the Metabase connection settings, testing each driver against your versions, configuring read-only accounts, documenting the setup, and verifying sync and query behavior. Ask any partner to state in writing which items it will do, which it will review and which stay with you, and who will run the connection after handover.
How long does a database connection and rollout take?
The duration depends on three things: network reachability between the Metabase host and the database, how long access approvals take in your organization, and how many catalogs, schemas and tables Metabase must sync. Metabase's documentation covers the setup steps, but no duration is stated here because the time comes from your environment. A single connection to a database that is already reachable can move quickly, while a warehouse behind a new firewall rule or a bastion host adds approvals and testing. Ask any provider for a timeline built from a written scope that lists each database, each network path and each approval owner.
What does a partner need from us before a connection work starts?
A partner needs five things to start cleanly:
- Database accounts with read-only access, created by your database owner, for each warehouse in scope.
- Network access from the Metabase host to each database port, including any firewall or bastion approvals.
- Test data or a non-production copy with representative tables and queries.
- Named owners for each database, who can answer questions about schemas, sensitive columns and expected load.
- A list of the catalogs, schemas and tables to sync, with the groups that need each one.
Missing any of these is the most common reason a connection work stalls, so agree them in the written scope before the work begins.
Is the connection setup covered by DeployOpen's fixed-scope engagements?
Most DeployOpen engagements are fixed-scope, so the databases, drivers, network paths, deliverables and timelines are agreed in writing before work starts. A connection job is included only where it appears in that written scope. DeployOpen does not publish a price list, so a quote follows from the scope you agree, which should list each database, driver, environment and verification step. If you need ongoing support, upgrades or continuous testing after the connections are live, those are available as retainers and should be scoped separately.
Do database connections in Metabase need extra security review?
Yes. Each connection stores credentials, reaches data across a network boundary and sends queries that can load the warehouse, so it should be reviewed like any other data access path. Confirm that the Metabase account is read-only, that secrets are stored and rotated according to your policy, and that TLS is used where your database supports it. Ask your security team to review which tables are exposed and who can see them through Metabase groups and permissions. Your compliance team may also need evidence of these controls, and DeployOpen prepares that evidence without issuing an audit report.
How DeployOpen scopes and delivers Metabase database connections
DeployOpen starts every Metabase database connection project with a written, fixed scope that names each database, each driver and each account Metabase will use. The scope records which connections use official drivers, which depend on community drivers, and which sit on a database version that the driver's vendor still supports. It also records the trade-off the client has accepted for each one. Because Metabase's official support for a driver depends on the plan, the scope states the plan the client runs, so the support position is clear before any connection is built. Scope, deliverables and timing are agreed in writing before work starts, and any change to the database list goes through the same written process.
Delivery happens inside the client's own infrastructure, on the Metabase instance and network paths the client controls. DeployOpen configures the connection settings, the read-only database users, the network routes and the credential storage for each source, and records where each secret is kept. For each connection, the work includes checking that the driver version matches the database version in use, confirming that sync and scan schedules do not overload the warehouse, and documenting the connection so the client's own team can change it later. Sensitive settings such as service account keys or key pairs are placed in the client's secret management, not in shared notes or screenshots.
Verification uses test questions written with the client's data owners. Each connection is checked by running saved questions against known results, confirming the expected tables and fields appear after sync, and confirming that a restricted test account cannot see data it should not reach. The client receives the test list, the results and any open issues. Where a team needs continued help with driver upgrades, new databases or periodic access checks, DeployOpen offers ongoing support through a retainer, with the scope of that retainer agreed in writing. Ask any provider to show a sample scope and test list before you sign.

