OpenMetadata with MySQL and MariaDB

Connecting MySQL and MariaDB application databases to OpenMetadata for metadata, view lineage, profiling and PII classification, with the grants and limits to plan for.

On this page

How OpenMetadata catalogs MySQL and MariaDB databases

Application databases are often the first systems a catalog needs to describe, because they hold the tables that product teams change, that reports depend on and that may contain personal data. The OpenMetadata MySQL and MariaDB database connectors pull metadata from the database server through the built-in database connector, which OpenMetadata ingestion runs on a schedule you set. The connector reads schemas, tables, columns and their definitions, so the catalog can show what exists before any owner, glossary term or classification is added by hand. The practical decision is which schemas belong in the catalog at all, since application databases often include tables for sessions, queues and temporary data that add noise without helping anyone find data.

The two connectors do not cover the same ground. The MySQL connector supports the profiler, data quality tests, dbt, view lineage, query usage, sample data, auto-classification and stored procedures. The MariaDB connector supports view lineage but not query usage, so MariaDB catalogs will show which views depend on which tables but will not show which queries read them. Confirm this against the current connector documentation before you commit to a lineage or usage requirement, and plan a manual or query-log alternative for MariaDB if usage drives your ownership decisions. Stored procedure coverage is listed for MySQL only in the supplied scope, so treat MariaDB routines as something to verify in a test run.

A catalog of operational data is not a read-only inventory. Profiling, sample data and auto-classification read row values, and on a production-adjacent database those reads add load and expose personal data to everyone with catalog access. Before enabling these features, agree with the database owner which accounts run ingestion, grant them the narrowest read rights that meet your needs, and decide which schemas are profiled and which are metadata only. Run the first profiling job against a replica or restored copy where possible, schedule it outside peak hours, and review the classification results with your privacy team before they appear in shared views.

What you need before connecting MySQL or MariaDB

Connecting a MySQL or MariaDB source depends on three things lining up: a working OpenMetadata deployment with its search and database services, a source version the connector supports in your release, and a read-only account that can reach the database over a trusted route. Settle each of these before the first ingestion run, because failures here look like connector errors later.

OpenMetadata server prerequisites

A bare metal OpenMetadata install needs Java 21, MySQL 8.0.42 or later or PostgreSQL 15 or later for its own metadata store, and Elasticsearch 9.x or OpenSearch 3.x for search. Minimum server sizing is 2 vCPUs, 4 GB RAM and 20 GB storage, with the database and search services each needing at least 2 vCPUs, 2 GB RAM and 30 GB storage. Confirm these against the release you plan to run, since the database and search tier usually grows with the number of tables you ingest.

Bare metal docs

Source database version to confirm

Check the MySQL or MariaDB version you intend to catalog against the connector documentation for your OpenMetadata release, not only against the vendor's current list. On the MySQL side, the LTS tracks such as 8.4 and 9.7 are the usual choices for production sources, while 8.0 is an older track. On the MariaDB side, confirm whether your server is 11.8, 12.3 LTS or 10.11, and avoid rolling releases for systems you need to stay stable.

Read-only ingestion account

Create a dedicated database user for OpenMetadata with SELECT on the schemas you want cataloged and read access to the information schema. Keep it separate from application accounts so that credential rotation and audit entries identify the catalog. Features such as profiling, usage and view lineage need additional grants, so ask for those in the connector docs before you widen the account, and do not grant write privileges.

Network route to the database port

The ingestion host, which may be a separate worker from the OpenMetadata server, must reach the MySQL or MariaDB port (3306 by default) through your firewalls, security groups and any proxy. Verify the route from the exact host that runs ingestion, not from your workstation. Document the source and destination pair so that a network change does not appear as a connector bug during a later run.

TLS certificate handling

Decide whether the connection will use TLS and which certificate authority signs the database server certificate. The ingestion host must trust that CA, and the certificate hostname must match the address OpenMetadata connects to, or the handshake fails. Plan who rotates the certificate, where the CA bundle lives on the ingestion host, and how an expired certificate will be detected before scheduled runs begin.

Driver and compatibility confirmation

Confirm the database driver version and any required connection options for your OpenMetadata release in the MySQL and MariaDB connector docs before you build the image or deploy the ingestion container. Driver requirements can change between releases, and a mismatch often surfaces only when the first metadata run starts. Record the versions you tested so that a later server or OpenMetadata upgrade has a known baseline.

MySQL connector docs

Configuring the MySQL or MariaDB connector step by step

This sequence moves from a least-privilege ingestion account to a catalog that holds metadata, view lineage, profiling and classification for the schemas you choose. Each step ends with a check you can run before you widen scope.

  1. Create the ingestion user with metadata grants

    Your database administrator creates a dedicated read-only account for OpenMetadata and grants it only the privileges needed to read schema metadata for the databases in scope. Keep this account separate from application users and from any account with write access. Before going further, confirm the grants against the connector documentation for your MySQL or MariaDB version, and test the login from the host that will run ingestion. The step is done when the account can connect and list the target schemas, and cannot modify any data.

  2. Register the database service in OpenMetadata

    A catalog administrator adds a MySQL or MariaDB database service in OpenMetadata, entering the host, port, the ingestion username and its credentials. Choose the connector type that matches your server, since MySQL and MariaDB have different documented feature coverage. Store the password through the secrets handling your deployment supports rather than pasting it into shared configuration. The step is done when the connection test passes and the service appears in the catalog without errors.

  3. Run a metadata-only ingestion and verify the inventory

    Run the metadata workflow with profiling, lineage, usage and classification switched off, limited to the schemas you have agreed. This establishes a baseline that is quick to rerun and easy to review. Compare the number of tables and views per schema in OpenMetadata against a count taken directly from the server's information schema, and spot-check column names, data types and nullability on a few tables. The step is done when the counts match for each in-scope schema, and any gaps have a documented reason such as a grant or an excluded pattern.

  4. Enable view lineage

    Turn on view lineage in the workflow and rerun ingestion for the same scope. OpenMetadata reads view definitions to infer which tables feed each view, so the grants for viewing definitions must be in place for the ingestion account. Pick a view that reads from at least one known base table, open it in the catalog and check that the upstream table appears in its lineage graph. If the graph is empty, confirm the view definitions are visible to the ingestion user before changing the workflow. The step is done when a sample of views shows the expected upstream tables.

  5. Enable the profiler on a scoped set of schemas

    Profiling reads table data, so limit it to a short list of schemas that owners have approved, and keep the account's data-read privileges to those schemas only. Start with a small set of representative tables, since profiling adds load on a database that serves production applications. Schedule runs outside peak business hours and confirm the choice with the team that operates the database. The step is done when profile metrics such as row counts and null ratios appear for the chosen tables, and the database team has confirmed the load is acceptable.

  6. Add query usage for MySQL only

    Enable query usage on MySQL servers only, because the connector documentation lists usage support for MySQL and not for MariaDB. Confirm with the database team that the account can read the query history source the connector uses on your server version, and that statement logging or history retention is configured as they expect. Rerun ingestion and open a frequently used table to check that usage counts and recent queries appear. The step is done when usage data matches what the database team sees in its own monitoring for a sample table. On MariaDB, plan usage tracking separately.

  7. Enable auto-classification and sample data as needed

    Turn on auto-classification for the in-scope schemas so columns that look like personal data receive classification tags, then review the results with the data owners. Classifiers produce suggestions that need human confirmation, so treat them as a starting list. Enable sample data only where owners need it to understand content, and keep it limited to approved tables. Check a few classified columns against known fields and remove or correct false positives before the tags are used for access or privacy decisions. The step is done when owners have reviewed the tags and the sample settings are documented per schema.

Which MySQL and MariaDB features to enable, and when

The metadata run reads schemas, tables, columns, data types and constraints from the database catalog, which gives OpenMetadata its inventory. It is the lowest-risk starting point because it reads definitions, not row data. Enable it first on any production server, and add the other features once data owners have accepted the inventory.

  • What it reads: database, schema, table and column definitions from the server's catalog views.
  • Extra permission: a read-only account with visibility into the target schemas. Confirm the exact grants in the MySQL connector documentation before you create the account.
  • Load: short, catalog-level queries on the schedule you set. Load stays low, but a very large number of schemas or tables lengthens each run.
  • Where it stops: it returns no row data, no usage and no lineage, so descriptions, owners and glossary terms still have to be entered by people.

Check that the account cannot write, and that schema filters and the run schedule match the inventory your owners agreed to.

How MySQL and MariaDB objects map to OpenMetadata entities

This table compares each MySQL or MariaDB object with the OpenMetadata entity it becomes after ingestion. Read it to see which identity carries over, such as service names and fully qualified names, and which parts you must set by hand, such as owners. Use it before you design the service naming and ownership model.

Database objectOpenMetadata entityWhat carries overWhat needs manual work
MySQL server or MariaDB instanceDatabase serviceOne service per connection, named by you in the connector configuration, which becomes the top of every fully qualified nameNaming convention for services across environments must be decided up front, since renaming later changes identifiers
Schema (MySQL uses schema and database as synonyms)Database and database schemaThe connector maps MySQL database names to OpenMetadata schema entities under a database entity, so the path is service, database, schemaConfirm in your own environment how the connector sets the database level, because MySQL terminology does not match OpenMetadata's three-level hierarchy
Base tableTableTable name, columns, data types, primary and foreign key metadata and comments when the connector reads themDescriptions beyond source comments, glossary terms and domain assignment are added in OpenMetadata
ViewTable with view definitionView definition text and view lineage to the source tables, supported for both MySQL and MariaDBLineage depends on the view definition being readable and parseable, so check views that use dynamic SQL or unsupported syntax
Stored procedureStored procedure entityProcedure metadata when the MySQL connector ingests stored proceduresLineage through procedure bodies is not reliably mapped, so plan manual lineage edits for critical flows and confirm coverage for your version
Query log entryQuery usage and lineage sourceQuery usage is available for MySQL but not MariaDB, so MySQL query history can drive usage counts and query-based lineageMariaDB has no query usage in the connector, so usage ranking for MariaDB tables must come from another source or be left empty
ColumnColumnColumn name, data type and column-level metadata used by profiling and tag applicationColumn-level lineage is not a reliable mapping for these sources, so confirm before promising it
Classification tag (PII and sensitivity)Classification tag applied to columnAuto-classification can tag columns on the MySQL connector, and tags attach to the column entityReview every automatic tag, since pattern matching produces false positives and misses; owners must approve final tags
OwnerOwner on database, schema, table or domainNothing carries over from MySQL or MariaDB grants or accountsOwners must be assigned in OpenMetadata, usually to teams or users, and reviewed on a schedule

Classifying PII in live application tables

Auto-classification and profiling in OpenMetadata read the values in your MySQL and MariaDB tables, not only their names, so the first decision is which schemas and tables the ingestion service may touch. The MySQL connector documentation lists auto-classification and profiler support, which means the ingestion user reads real customer rows from operational tables. Scope the metadata service with schema and table filters so that only the databases you have agreed to catalog are sampled, and keep the integration account read-only with no write grants. Ask the data owner which tables hold personal data before the first run, because that list is what you will check the results against.

Sample size and schema scope are both cost and risk levers. A larger sample improves detection on columns with mixed content, but it also means more customer values pass through the ingestion host, its logs and its metadata store. Choose a conservative sample for the first run, confirm how the profiler sampling settings in your OpenMetadata version apply to MySQL and MariaDB, and avoid profiling large tables during business hours on the primary, since sampling queries add read load. Document the chosen settings in the service configuration so a later change is traceable. Confirm the exact setting names and defaults against the connector documentation for your release, not against this summary.

Treat every automatic tag as a candidate until it is reviewed. Pattern and name-based detection produces false positives, such as order reference numbers that resemble card or phone formats, and misses free-text fields where personal data appears inside notes or JSON columns. Review each tagged column with its owner, record accepted and rejected tags, and only then allow PII tags to drive masking, access policies or retention jobs. Plan for re-review after schema changes, because new columns are not classified until the next run. Whether tags are accurate for your data is a decision for the data owner and your privacy team. Confirm detection behavior on a representative copy of your schema before relying on it, and have the owner sign off in writing.

Securing the MySQL and MariaDB connection

The MySQL and MariaDB connector reads metadata, runs profiler queries and can pull sample rows, so each of those activities needs its own deliberate access decision. The cards below cover the account, the connection, the secret, the network path and the people who can see data inside the catalog.

Dedicated read-only ingestion account

Create a separate database user for OpenMetadata rather than reusing an application or administrator login. Grant only what each enabled feature needs: metadata reads for the base connector, then additional privileges only if you turn on profiling, sample data or query usage. Review the grants against the connector documentation for your OpenMetadata version, since the connector scope differs between MySQL and MariaDB. Ask your DBA to confirm that the account cannot write to application schemas.

MySQL connector docs

TLS on the database connection

Require encrypted connections between the ingestion process and the database server, so credentials and result sets do not travel in clear text across the network. MySQL and MariaDB both support TLS, but the server must present a certificate the ingestion host trusts. Confirm the certificate chain, the hostname check and the minimum TLS version your security team requires, and test the connection from the exact host that runs ingestion.

Password in OpenMetadata secret handling

Keep the database password out of workflow YAML files, version control and container images. Store it through the secret management option your OpenMetadata deployment supports and reference it from the connection configuration. Decide who can edit or read that secret, rotate it on the same schedule as other service accounts, and confirm that the ingestion logs do not echo the connection string.

Network restriction on the ingestion host

Allow the database port only from the host or subnet that runs OpenMetadata ingestion, and deny it from everywhere else. On MySQL and MariaDB, pair the network rule with a host-scoped account so the user can only connect from that address. Keep the ingestion host in a segment that can reach the database but is not reachable from the general user network, and document the rule for your audit evidence.

Separate profiler and sample access

Metadata extraction and profiling put different demands on the database. Profiling runs aggregate queries over table data, and sample data returns actual rows. Consider a second connection or account for profiling and sampling, enabled only on the tables that need it, and keep the metadata-only connection for the broad catalog. Confirm which grants each path requires before you widen any account.

MySQL connector docs

Limit who sees sample data

Sample rows from operational tables can contain customer names, account identifiers or health details even when the schema looks harmless. Restrict sample data visibility to the owners and stewards who need it, and keep it off for tables classified as sensitive. Note that OpenMetadata does not support combining SSO with basic authentication, so choose one sign-in model for catalog users and map roles from it consistently. Test that a standard catalog user cannot open sample data.

Common MySQL and MariaDB connector failures and fixes

This table lists the failures teams most often hit when connecting OpenMetadata to MySQL and MariaDB, with the likely cause and the check or fix for each. Read it before the first ingestion run, and again when a run completes but the catalog is missing views, procedures, usage or lineage. Several symptoms look like success, so check the connector's coverage against the database engine you actually run.

SymptomLikely causeCheck or fix
Connection refused or TLS handshake errorsThe ingestion host cannot reach the database port, or the TLS settings in the connector do not match the server certificate chain or required TLS version.Test reachability from the ingestion runner, not your laptop. Confirm the certificate authority the connector trusts and whether the server requires TLS. Ask your DBA to confirm the server's TLS configuration.
Views or stored procedures missing without an errorThe ingestion user lacks privileges on some objects, so the connector skips them rather than failing the run.Compare the connector's object counts with a query run as the ingestion user. Grant the privileges the connector documentation lists for each object type, then re-run ingestion.
Query usage empty for MariaDBThe MariaDB connector covers view lineage but not query usage, so usage data is not expected from it.Set expectations before the pilot. Do not treat empty usage on MariaDB as a fault. Plan usage-based ownership or popularity signals through another source.
Profiler timeouts on large tablesFull-table profiling scans every row, and large operational tables exceed the time or resource limits set for the run.Restrict profiling to the schemas that need it, exclude high-volume tables, and use sampling settings. Schedule profiling outside peak application hours and confirm the limits with your DBA.
Lineage gaps from views across databasesA view references tables in another database or schema that the ingestion service does not include, so the dependency cannot be resolved.Add the referenced databases to the ingestion scope, or document the cross-database dependency manually. Verify lineage on a sample view after each change.
Metadata differs from the live databaseIngestion ran against a different server version or instance than the one your applications use, such as a replica, a test server or an older MariaDB or MySQL release.Confirm the host, port and database name in the service configuration against the production endpoint. Record the server version in your ingestion runbook and compare it with the running server before each release.

How the ingestion path reaches the database

The ingestion runner starts the work, opens a TLS connection to the MySQL or MariaDB server using a read-only account, and runs metadata and profiler reads inside the database network boundary. Only the extracted results cross back to the OpenMetadata server, which stores them and updates the search index. Check that the account holds read-only grants, that TLS is enforced on the server, and that the runner is the only component allowed to reach the database port.

Ingestion reads inside the database boundary, then sends only extracted results onward.

Questions teams ask before connecting MySQL or MariaDB

What drives the effort and cost of connecting MySQL or MariaDB to OpenMetadata?

The main drivers are how many schemas and databases the connection covers, how much of the profiler and classification scope you turn on, how much review the PII results need, and whether your own team builds the connection or hires help. Each schema adds metadata to extract and review. Profiling and auto-classification read actual rows, so they add load and review time that metadata extraction does not. Ownership assignments and glossary mapping take time from people who know the data. Cost splits into labor (your staff time or a partner's fixed-scope fee), infrastructure to run OpenMetadata and its ingestion, and ongoing upkeep as schemas change. Ask any quote to list schemas, profiler tables, classification scope and handover items separately.

How long does a MySQL or MariaDB connection take to set up?

Duration depends on scope rather than on the database engine alone. A single application database with metadata extraction and no profiling is a much smaller job than dozens of schemas with profiling, PII classification and lineage review across several teams. Time also depends on how quickly your team gets read-only credentials, network routes and named owners for each schema. Ask for a timeline tied to a written list of schemas, the features enabled and the people who must sign off, so you can compare build options on the same basis. No fixed duration applies to every environment.

What do we need to provide before the connection work starts?

Before work starts, you typically need to provide:

  • A read-only database user for each MySQL or MariaDB server in scope, with the grants your connector documentation lists for the features you enable.
  • Network routes from the OpenMetadata ingestion runtime to each database host, including firewall rules and any TLS settings your servers require.
  • A named owner for each schema or database, who answers questions about meaning, sensitivity and access.
  • A decision on whether sample data may be stored in OpenMetadata, and for which tables.
  • A decision on which schemas and tables are excluded, such as personal or regulated datasets you do not want profiled.

Confirm each item against your own environment and access policy before scheduling the work.

Can an internal team connect MySQL or MariaDB to OpenMetadata alone?

Yes, a team with database administration, data platform and security skills can do it without outside help, because OpenMetadata is Apache License 2.0 software and the connector documentation is public. The harder parts are rarely the connector configuration itself. They are deciding the grant model, agreeing what profiling and PII classification may read, keeping OpenMetadata's ingestion and search components running, and getting business owners to maintain descriptions and glossary terms. Teams often hire help for a fixed-scope first pass and then keep the upkeep in-house. Whichever route you take, ask for a written scope that names who owns each step after handover.

What happens if our database is MariaDB and we need query usage?

MariaDB's connector covers view lineage but not query usage, so usage-based insight from query history is not available for MariaDB through that connector. You still get metadata, and the MariaDB connector supports view lineage. If your data governance plan depends on knowing which queries and users touch each table, plan a different source for that signal or accept that it is out of scope for MariaDB. MySQL's connector does include query usage, so mixed estates need the two sources documented separately. Confirm the current connector documentation for your OpenMetadata version before you promise usage coverage to stakeholders.

Does profiling on operational MySQL or MariaDB tables affect production?

Profiling and sampling read rows, so they add query load to the database that serves your application. The risk depends on table size, how often profiling runs, which tables are included and when the job runs. Start with a narrow table list, run during a window your operations team approves, and watch database metrics during the first runs. Ask your DBA for a read replica if the production primary cannot absorb the load. Record the decision in the connection plan so future schema additions are reviewed before profiling is switched on for them.

How should PII classification results be reviewed before anyone relies on them?

Auto-classification suggests tags for columns that may hold personal data, but it can miss fields and flag fields that are not personal. Treat its output as a first pass. Assign a data owner to review each flagged schema, confirm or correct the tags, and record which columns are approved for use in reports. Keep a log of who approved each classification and when, because compliance teams will ask how the inventory was produced. This review step is ongoing work after go-live, not a one-time task, so include it in the operating plan and in any quote.

What should a quote for this connection include?

A useful quote lists the scope in writing before work starts. It should name each MySQL or MariaDB server and schema, the OpenMetadata features enabled (metadata, profiler, data quality, view lineage, query usage, sample data, auto-classification), the network and credential setup, the classification review, testing against a non-production copy if one exists, documentation and handover, and what happens after handover. Ask which items are one-time and which recur, such as upgrades and retesting after schema changes. DeployOpen works from a fixed written scope, and it does not publish a price list, so a quote follows from that scope.

How DeployOpen scopes and delivers the MySQL and MariaDB connection

DeployOpen treats the OpenMetadata connection to MySQL and MariaDB as a fixed-scope piece of work, agreed in writing before any credentials are created. The work covers which databases and schemas are cataloged, which permissions the ingestion user receives, how profiling and PII classification are limited, and how the result is handed to the team that will run it.

How we scope

  • Inventory which MySQL and MariaDB servers, schemas and application databases will be cataloged, and who owns each one
  • Record the MySQL or MariaDB versions in use, since connector coverage differs between the two engines and query usage is MySQL only
  • Agree in writing whether view lineage, profiling, PII classification and stored procedure metadata are in or out of the deliverables

How we build

  • Create a read-only ingestion account with grants limited to the schemas in scope, and document each grant against the connector docs
  • Configure the MySQL or MariaDB service in OpenMetadata, run a metadata ingestion, and review the results against a sample of known tables
  • Set profiler sampling and PII classification on tables you approve, and test that operational queries are not slowed during scheduled runs

How we hand over

  • Deliver the connection configuration, ingestion schedule and grant script, with the reasoning for each permission written down
  • Provide a runbook covering credential rotation, failed ingestion runs, and how to add a new schema to an existing service
  • Walk the owning team through ownership assignment, glossary terms and how to read view lineage and its gaps

How we support

  • Ongoing support, OpenMetadata upgrades and continuous testing are available as retainers, agreed separately from the fixed scope
  • Retainers can cover reviewing MySQL or MariaDB version changes and checking the connector after OpenMetadata releases
  • Ask for the support boundaries, response expectations and upgrade handling in the written proposal before work starts

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.