MariaDB

Learn the required and optional properties of creating a MariaDB Connection, Credential, Read Connector, and Write Connector.

vertica logo

Prerequisites

  • MariaDB server
  • Hostname of IP address
  • Database name

Connection Properties

The following table describes the fields available when creating a new MariaDB Connection. Create a connection using the information below and these step-by-step instructions.

FieldRequiredDescription
Access TypeRequiredThis connection type is Read-Only, Write-Only, or Read-Write.
Connection NameRequiredInput your desired name.
HostRequiredHostname or IP address of the MariaDB server.
PortOptionalInput a port number. If left blank, the default value is 3306.
Database NameRequiredThe name of the MariaDB database you want to connect to.
Requires CredentialsOptionalChoose from existing credentials or create new credential for connecting to MariaDB if 'Requires Credentials' checkbox is selected.

Credential Properties

The following table describes the fields available when creating a new MariaDB credential.

Field NameRequiredDescription
Credential NameRequiredThe name to identify this credential with. This credential will be available as a selection for future use.
Credential TypeRequiredThis field will automatically populate with MariaDB.
UserRequiredLogin username for MariaDB.
PasswordOptionalPassword if configured for the user

Read Connector Properties

The following table describes the fields available when creating a new MariaDB Read Connector. Create a new Read Connector using the information below and these step-by-step instructions.

Field NameRequiredDescription
NameRequiredProvide a name for your connector. We recommend using lowercase with underscores in place of spaces.
DescriptionOptionalDescribes the connector. We recommend providing a description if you are ingesting information from the same source multiple times for different reasons.
Table NameRequiredName of the table being ingested. This can either be supplied manually or selected in Step 2 of Create a Read Connector.
Schema NameOptionalThe name of the schema of the table entered above that you wish to use specifically.
Replication StrategyOptionalFull Resync, Filter by column range, or Incremental column name, Table Snapshot, Table Snapshot in Parallel, and Change Data Capture.* See Database Reading Strategies for more information.

🚧

Change Data Capture (CDC) with MariaDB and Ascend

The default binary logging format for MariaDB is [mixed logging] (https://mariadb.com/kb/en/binary-log-formats/#mixed-logging). However, Ascend currently requires row-based logging in order to utilize CDC. See MariaDB Binary Log Formats for how to configure the log format for row-based logging.

Write Connector Properties

The following table describes the fields available when creating a new MariaDB Write Connector. Create a new Write Connector using the information below and these step-by-step instructions.

Field NameRequiredDescription
NameRequiredProvide a name for your connector. We recommend using lowercase with underscores in place of spaces.
DescriptionOptionalDescribes the connector. We recommend providing a description if you are ingesting information from the same source multiple times for different reasons.
UpstreamRequiredThe name of the previous connector the Write Connector will pull data from.
Table NameRequiredThe name of the table that will be written to MariaDB.
Write StrategyRequiredThe strategy to copy data into MariaDB.

The Full Load strategy will replace the entire table's contents each time that the upstream transform has changed.

If the upstream data set contains multiple Ascend partitions and not all partitions are expected to change on each update, then the Incremental By Partition strategy allows for Ascend to only update/insert/delete the partitions of the MariaDB table that have changed in Ascend.
Max Number of Parallel Ascend PartitionsOptionalAscend can write partitions in parallel. Ex.: If a transform has 2000 partitions and you set the max parallel to 100, Ascend will write partitions 100 at a time.
A SQL Statement for Ascend to Execute Before WritingOptionalHere, the user has the option to execute a pre-processing script before writing to final table.
A SQL Statement for Ascend to Execute After WritingOptionalHere, the user has the option to execute a pre-processing script after writing to final table.
Schema NameOptionalThe name of the schema to match.
On Schema MismatchOptionalOptions are as follows:
- Skip schema check
- Stop and display error
- Recreate table
- Alter table

© Ascension Labs Inc. | All Rights Reserved