MySQL / MariaDB

tap-mysql from transferwise

MySQL / MariaDB database extractor

The tap-mysql Meltano extractor pulls data from MySQL / MariaDB that can then be sent to a destination using a loader.

Other Available Variants

Getting Started

Prerequisites

If you haven't already, follow the initial steps of the Getting Started guide:

  1. Install Meltano
  2. Create your Meltano project

Known limitations

Note that this extractor is incompatible with the default datamill-co variants of target-postgres and target-snowflake, because they don't support stream names that include the source schema in addition to the table name: <schema>-<table>, e.g. public-accounts.

Instead, use the transferwise variants that were made to be used with this extractor: target-postgres and target-snowflake.

Installation and configuration

  1. Add the tap-mysql extractor to your project using
    meltano add
    :
  2. meltano add extractor tap-mysql
  3. Configure the tap-mysql settings using
    meltano config
    :
  4. meltano config tap-mysql set --interactive
  5. Test that extractor settings are valid using
    meltano test
    :
  6. meltano test tap-mysql

Next steps

If you run into any issues, learn how to get help.

Capabilities

The current capabilities for
tap-mysql
may have been automatically set when originally added to the Hub. Please review the capabilities when using this extractor. If you find they are out of date, please consider updating them by making a pull request to the YAML file that defines the capabilities for this extractor.

This plugin has the following capabilities:

  • catalog
  • discover
  • state

You can override these capabilities or specify additional ones in your meltano.yml by adding the capabilities key.

Settings

The tap-mysql settings that are known to Meltano are documented below. To quickly find the setting you're looking for, click on any setting name from the list:

You can override these settings or specify additional ones in your meltano.yml by adding the settings key.

Please consider adding any settings you have defined locally to this definition on MeltanoHub by making a pull request to the YAML file that defines the settings for this plugin.

Host (host)

  • Environment variable: TAP_MYSQL_HOST
  • Default Value: localhost

The MySQL hostname.

Port (port)

  • Environment variable: TAP_MYSQL_PORT
  • Default Value: 3306

The MySQL port.

User (user)

  • Environment variable: TAP_MYSQL_USER

The MySQL username.

Password (password)

  • Environment variable: TAP_MYSQL_PASSWORD

The MySQL password.

Database (database)

  • Environment variable: TAP_MYSQL_DATABASE

The MySQL database name.

SSL (ssl)

  • Environment variable: TAP_MYSQL_SSL
  • Default Value: false

Whether the MySQL connection should use SSL.

Filter DBs (filter_dbs)

  • Environment variable: TAP_MYSQL_FILTER_DBS

Comma separated list of schemas to extract tables only from particular schemas and to improve data extraction performance

Session SQLs (session_sqls)

  • Environment variable: TAP_MYSQL_SESSION_SQLS
  • Default Value: ["SET @@session.time_zone='+0:00'","SET @@session.wait_timeout=28800","SET @@session.net_read_timeout=3600","SET @@session.innodb_lock_wait_timeout=3600"]

List of SQL commands to run when a connection made. This allows to set session variables dynamically, like timeouts.

Something missing?

This page is generated from a YAML file that you can contribute changes to.

Edit it on GitHub!

Looking for help?

If you're having trouble getting the tap-mysql extractor to work, look for an existing issue in its repository, file a new issue, or join the Meltano Slack community and ask for help in the
#plugins-general
channel.

Install

meltano add extractor tap-mysql

Maintenance Status

  • Maintenance Status
  • Stars
  • Forks
  • Open Issues
  • Open PRs
  • Contributors
  • License

Maintainer

  • Wise

Meltano Stats

  • Total Executions (Last 3 Months)
  • Projects (Last 3 Months)

Keywords

  • database