The tap-mysql Meltano extractor pulls data from MySQL / MariaDB that can then be sent to a destination using a loader.
Other Available Variants
- singer-io
- transferwise (default)
Getting Started
Prerequisites
If you haven't already, follow the initial steps of the Getting Started guide:
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
-
Add the tap-mysql extractor to your project
using
:meltano add
-
Configure the tap-mysql settings using
:meltano config
-
Test that extractor settings are valid using
:meltano test
meltano add extractor tap-mysql
meltano config tap-mysql set --interactive
meltano test tap-mysql
Next steps
Follow the remaining steps of the Getting Started guide:
If you run into any issues, learn how to get help.
Capabilities
The current capabilities fortap-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?
#plugins-general
channel.
Install
meltano add extractor tap-mysql
Homepage
Maintenance Status
Meltano Stats
Keywords