Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Destinations

Connect MariaDB as a destination

Create a MariaDB service account and connect it through Artie's MySQL destination, so your pipeline writes tables to a MariaDB database.

Artie writes to MariaDB with its MySQL destination. The dashboard has no separate MariaDB destination and no MariaDB-specific settings.

Prerequisites

  • MariaDB 10.6, 10.11, or 11 or later. Amazon RDS for MariaDB is supported.
  • On Amazon RDS for MariaDB: access to the master user, to create the service account in step 1.

1. Create a service account

Run this SQL on your MariaDB server to create the user Artie signs in with:

SQL
CREATE USER 'artie' IDENTIFIED BY 'PASSWORD';

-- Allows Artie to merge data, create and alter destination tables, and clean up
-- its temporary tables.
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER ON *.* TO 'artie';

Replace PASSWORD with the password for this user.

To grant these privileges on specific databases only, use the database-scoped grants in MySQL destination database routing.

2. Add MariaDB in Artie

Complete these steps in the pipeline setup flow in the Artie dashboard.

  1. Choose MySQL

    On Choose your destination, select MySQL, then select Continue.

  2. Choose a network method

    On How would you like to connect your destination?, select SSH tunnel, Allowlist Artie IPs or PrivateLink.

    PrivateLink needs an Enterprise plan. Connection options describes each method.

  3. Enter the host and port

    On Connect MySQL, enter your MariaDB Host and Port. The port defaults to 3306.

    On Amazon RDS, enter the DNS name and port of the DB instance endpoint.

  4. Enter the service account

    Keep Authentication method set to Static credentials, then enter the User and Password from step 1.

  5. Select a TLS mode

    In TLS mode, select Disabled, TLS (preferred) or TLS (required). The default is Disabled.

    TLS (preferred) uses TLS when the server offers it and falls back to an unencrypted connection.

  6. Choose the destination database

    In Schema name, select the MariaDB database Artie writes to, or create one.

    When your source has schemas, a Schema control appears with One schema and Multiple schemas. Multiple schemas replaces Schema name with an optional prefix, as MySQL destination database routing describes.

Verify the connection

On Connect MySQL, select Verify destination. The step shows Destination verified, and the button changes to Continue.

Verify destination needs at least one table. If you haven’t chosen tables, the button reads Test connection and checks the connection only. To continue without the check, select Verify later.

Destination database routing

Like MySQL, MariaDB treats schemas and databases as the same thing. Routing to one database or to multiple databases works as described in MySQL destination database routing, including the database-scoped grants.

MariaDB differences

The MySQL destination has one MariaDB-specific behavior: how it reads JSON columns.

JSON columns are stored as LONGTEXT

Artie creates JSON columns for source JSON, struct, and array values. In MariaDB, JSON is an alias for LONGTEXT with a json_valid check constraint. SHOW CREATE TABLE and INFORMATION_SCHEMA.COLUMNS therefore show these columns as longtext.

Artie reads the check constraint and still treats these columns as JSON. MariaDB’s JSON functions, such as JSON_EXTRACT, work on them.

Next steps

Was this page helpful?