Skip to main content
MySQL is available as a source connector. MantrixFlow discovers tables visible to the configured database user, previews source rows, stages selected tables in DuckDB, runs the saved SQL models, and delivers the result to a configured destination.

Required source access

Use a dedicated read-only MySQL user. Grant access only to the database and tables the workspace needs.
Restrict the account’s host pattern or network allowlist in production. Store the real password in a secret manager and never commit it.

Connection fields

Do not enter localhost when MantrixFlow is running in a different container or host. Use a reachable DNS name, private address, or host gateway instead.

Create the connection

  1. Open Connections.
  2. Click + New Connection.
  3. Set the role to Source.
  4. Choose MySQL.
  5. Enter the host, port, database, username, password, and SSL mode.
  6. Click Test Connection.
  7. Save only after the test succeeds.
If the database uses an IP allowlist or private network, complete Private database access first.

Discover and preview tables

  1. Create a pipeline using the MySQL source connection.
  2. Open Source.
  3. Click Discover catalog.
  4. Enable each required database.table stream.
  5. Choose its sync mode and cursor when applicable.
  6. Preview representative rows and inspect detected types.
  7. Click Save stream settings.
For example, application_db.customers is staged as application_db__customers. The SQL editor shows the exact normalized staging name to use.

Full Table mode

Use Full Table for the first validation run, small reference tables, or intentional snapshots. Every run reads all rows visible to the source user. Use a stable destination Upsert key so repeated Full Table runs do not create duplicates.

Incremental mode

Use Incremental for growing tables with a reliable cursor such as updated_at, created_at, or a monotonically increasing identifier.
The replication key should be non-null, indexed, and updated whenever a source record changes. MantrixFlow advances the saved checkpoint only after a successful run.

Example source table and model

Validate and preview the model before choosing the final destination mapping.

Type guidance

See Data type compatibility for the cross-destination matrix.

Verification queries

Compare the source count with Extract + Stage in Runs. A filtered SQL model can intentionally produce fewer destination rows.

Troubleshooting

Continue with MySQL destination or the Airtable and MySQL pipeline guide.