WARNING: MySQL database can fail to perform basic queries for even medium volumes of data and is not appropriate as a data warehouse. We support MySQL data warehouse as a test environment. If you run into these limitations, you will need to migrate to a supported destination.
Fivetran supports MySQL data warehouse as a destination. MySQL is not typically used as a data warehouse because it is a row-based database more suited to transactional use-cases. Large analytical querying is much faster on columnar warehouses.
Please make sure the following items are true before getting setup or make sure you have the permissions and ability to configure the following before going through the setup process:
- Version 5.5 or above (5.5.40 is the earliest version tested)
- IP (e.g. 22.214.171.124) or host (your.server.com)
- Port (usually 3306)
- Access to your MySQL Database via Fivetran's IP
innodb_buffer_pool_sizeshould at least be 1024MB. Refer The InnoDB Buffer Pool to configure the
- The system variable
local_infileshould be set to ON. Refer local_infile for more details. You can check the status via
SHOW GLOBAL VARIABLES LIKE 'local_infile'and switch it on via
SET GLOBAL local_infile = true.
- A Fivetran-specific MySQL user with proper permissions
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, CREATE TEMPORARY TABLES, CREATE VIEW ON *.* TO fivetran@'%';
Type transformation mappinglink
The data types in your MySQL warehouse follow Fivetran's standard data type storage.
We use the following data type conversions:
|Fivetran Data Type||Destination Data Type||Notes|
|INSTANT||TIMESTAMP||For MySQL version 5.7 or later, we convert INSTANT to TIMESTAMP(6). MySQL's TIMESTAMP data type range begins with
|STRING||LONGTEXT or VARCHAR(b)||We convert STRING:
|JSON||JSON||For versions prior to MySQL version 5.7.8, we convert JSON to TEXT because previous versions don't support JSON.|
|BINARY||LONGBLOB or VARBINARY(b)||We convert BINARY:
Fivetran supports connecting with different MySQL implementations. We have specific instructions for connecting to each:
Primary key creationlink
Fivetran creates primary keys for a MySQL warehouse in either of the following scenarios:
MySQL version earlier than 5.7.7, or MariaDB version earlier than 10.2:
- If the total number of primary keys provided by the source is less than 16, and the sum of the byte length of String primary keys is less than 191.
MySQL version 5.7.7 and later, or MariaDB version 10.2 and later:
- If the total number of primary keys provided by the source is less than 16, and the sum of the byte length of String primary keys is less than 768.
Data load costslink
Whether you are self-hosting MySQL or using a managed service, you will not be charged extra when we load data into your warehouse.