TIMESTAMP range, native UUID type), so each one is written on its own terms. A MySQL server is refused by this connector.
Compatible versions
MariaDB 10.6 and older are refused by the credential check. A MySQL server is refused too: use the MySQL Target.
Prerequisites
- Network access from Popsink to the MariaDB server (port
3306by default). - A database that will receive the tables. In MariaDB a schema is a database: Popsink writes into the database you configure.
- A user with the following privileges on that database:
CREATE TEMPORARY TABLES is needed for the staging table each flush loads into before it is applied to the target table.
- Recommended:
local_infile = ONon the server. Popsink then loads each batch withLOAD DATA LOCAL INFILE, its fastest path. Withlocal_infile = OFFthe connector still works, through batched statements, at a lower throughput.
Configuration
With encryption on and the server certificate not trusted, the certificate and the host name are both verified.
How rows are written
- Records are applied in batches. Each batch is loaded into a temporary staging table, then applied to the target table in one transaction: existing keys are updated, new keys inserted, deleted keys removed.
- The connector never uses
INSERT … ON DUPLICATE KEY UPDATE: that statement fires on any unique index and could overwrite an unrelated row. Rows are matched on the subscription’s key only. - A row whose value has not changed is not rewritten.
- Records without a key are identified by a hash of their content, as on the other SQL targets.
- Sessions run in
READ COMMITTEDwith the time zone set to UTC.
Data types
Popsink creates each table on its first record. Columns are typed from the Avro schema of the source record, read from the Schema Registry, never from the values. When a subscription applies its column mapping, an explicit cast in the mapping takes precedence. An existing table keeps the types it already has.
On a table that already exists, a
BOOLEAN value goes into an INT or TINYINT column as 1 / 0, and a float into a DOUBLE column.
Schema evolution
- New source columns are added with
ALTER TABLE … ADD. - Type changes are applied with
ALTER TABLE … MODIFYwhen the new type is wider. Decimals are widened, never narrowed. If MariaDB refuses the change, the subscription stops on that table instead of skipping data. - Dropped source columns are kept in the table, and stay
NULLfor new rows. - With schema evolution off on the subscription, any change that needs an
ALTERstops the subscription.
FAQ
Can I use the MySQL target for MariaDB?
Can I use the MySQL target for MariaDB?
No. The MySQL target refuses a MariaDB server, and this one refuses a MySQL server. Create a MariaDB target instead.
Do I need to enable local_infile?
Do I need to enable local_infile?
No, but it is recommended. Without it, rows are written through batched statements, which is slower on large volumes.
Where do the tables go?
Where do the tables go?
Into the database set on the target. There is no separate schema field: in MariaDB, schema and database are the same thing.
Target data types
Compare column types across every target.
MariaDB Source
Capture changes from MariaDB through its binary log.
Start a pipeline
End-to-end example to validate your configuration.