MariaDB is is a community-developed, commercially supported fork of the MySQL RDBMS, with the same database structure and indexes as MySQL.

You can ingest data from your MariaDB database using Hevo Pipelines and replicate it to a warehouse of your choice.


Perform the following steps to configure your MariaDB MySQL Source:

Set up MySQL Binary Logs for Replication

A binary log is a collection of log files that records information about data modifications and data object modifications made on a MySQL server instance. Typically binary logs are used for data replication and data recovery.

Hevo supports data ingestion for replication from MySQL servers via binary logs (BinLog). For this, binary logging must be enabled on your MySQL server. You can do this via the MySQL server configuration file or via server startup options to mysqld.

Follow these steps to set up BinLog replication:

1. Check if BinLog replication is already enabled

  1. Open a secure MariaDB shell:

    mysql -u username -p
  2. Enter the password for the user:

  3. Enter the command:

    select @@log_bin;

    If this statement returns a value of 1, BinLog is active. If value returned is 0, this means that BinLog is disabled. To enable it, follow the steps below.

2. Enable BinLog replication

  1. Log in to your MariaDB server.

  2. View your MariaDB server configuration:

    sudo nano etc/mysql/mariadb.conf.d/50-server.cnf

    (This may be sudo nano /etc/my.cnf in some cases)

  3. In the configuration file, ensure the following configurations are specified. If not specified, add them now.

     max_binlog_size = 100M
  4. Restart the MariaDB SQL server instance by entering the following command:

     sudo service mysql restart
  5. After restart, log in to the MariaDB server to check BinLog again:

     SELECT @@log_bin;

The value returned is now 1, indicating that BinLog is active.

Note: The retention period should ideally be at least 72 hours (3 days). This helps Hevo ensure that no log-file is missed from being read, specially when Historical Data loading is enabled.

Read BinLog Replication and BinLog Alerts.

The replication reference guide on MySQL’s documentation portal provides a complete reference of the options available for replication and binary logging.

Whitelist Hevo’s IP Addresses

Follow these steps to whitelist the Hevo IP address for your region and enable Hevo to connect to your MariaDB database:

  1. Edit the MariaDB server configuration:

    sudo vim etc/mysql/mariadb.conf.d/50-server.cnf
  2. Scroll to [mysqld] and add:

     bind-address =


     bind-address =

    (Check the Hevo IP address for your region)

  3. Save the file.

Grant Privileges to the User

The database user specified in the Hevo Pipeline must have the following global privileges:



To set up these privileges:

  1. Go to your MariaB MySQL server. For example:

     mysql -u root -p
  2. Grant SELECT privileges to the user:

     GRANT SELECT ON *.* to jacob@localhost;
  3. (Optional) View the grants for the user:

     show grants for jacob@localhost;


  • Hevo does not fetch Views from the MySQL database automatically.

    As a workaround, you can create individual Pipelines in Custom SQL mode to fetch each View. However, some limitations may arise based on the type of data synchronization, the query mode, or the number of Events. Contact Hevo Support for more details.

Last updated on 06 Mar 2021