TiDB [ARCHIVED]
TiDB (/’taɪdiːbi:/, "Ti" stands for Titanium) is an open-source, distributed, NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. It is MySQL compatible and features horizontal scalability, strong consistency, and high availability. Now, everyone can take a free dev trial on TiDB Cloud.
This page guides you through the process of setting up the TiDB destination connector.
Features
Feature | Supported?(Yes/No) | Notes |
---|---|---|
Full Refresh Sync | Yes | |
Incremental - Append Sync | Yes | |
Incremental - Append + Deduped | Yes | |
Namespaces | Yes | |
SSH Tunnel Connection | Yes |
Output Schema
Each stream will be output into its own table in TiDB. Each table will contain 3 columns:
_airbyte_ab_id
: a uuid assigned by Airbyte to each event that is processed. The column type in TiDB isVARCHAR(256)
._airbyte_emitted_at
: a timestamp representing when the event was pulled from the data source. The column type in TiDB isTIMESTAMP(6)
._airbyte_data
: a json blob representing with the event data. The column type in TiDB isJSON
.
Getting Started
Requirements
To use the TiDB destination, you'll need:
- To sync data to TiDB with normalization you should have a TiDB database v5.4.0 or above.
Network Access
Make sure your TiDB database can be accessed by Airbyte. If your database is within a VPC, you may need to allow access from the IP you're using to expose Airbyte.
Permissions
You need a user with CREATE, INSERT, SELECT, DROP, CREATE VIEW, ALTER
permissions. We highly recommend creating an Airbyte-specific user for this purpose.
To create a dedicated database user, run the following commands against your database:
CREATE USER 'airbyte'@'%' IDENTIFIED BY 'your_password_here';
Then give it access to the relevant database:
GRANT CREATE, INSERT, SELECT, DROP, CREATE VIEW, ALTER ON <database name>.* TO 'airbyte'@'%';