GuidesData Sync
Example - Sync from MySQL to Tacnode
Preparation
Network setup refers to Data Synchronization Network Connection
Permissions
Only full synchronization jobs are included. The following permissions have been granted. The ${user}
is recognized as the operator of the synchronization job, and the ${password}
refers to the user's password.
If incremental synchronization jobs are included, ensure these permissions are granted.
Incremental synchronization jobs enable binlog
- Verify if binlog is enabled
Please verify that the following parameters are accurate:
- server_id is not empty
- log_bin is set to 1
- binlog_format is set to ROW
- binlog_row_image is set to FULL
- If any parameters do not match the above:
- If you have set up your own MySQL service, update mysqld.cnf and restart the MySQL service.
- For RDS services provided by cloud vendors, typically, you can restart them after saving changes in the console.
Data Source Configuration
To set up the MySQL data source, it must be configured using these connection properties:
- Host: Address of the MySQL service
- Port: Typically 3306, this is the port for MySQL services
- Username: The user with the necessary permissions
- Password: The password associated with the specified username
Default Node Mapping
The default mapping rules for mapping nodes are outlined below:
Meaning: In Tacnode, MySQL tables like d.t (with d being the database name and t representing the table name) correspond to d.public.t (where public is the schema).
Default Type Mapping
MySQL | Tacnode |
---|---|
TINYINT | INT2 |
SMALLINT | INT2 |
MEDIUMINT | INT4 |
INT | INT4 |
BIGINT | INT8 |
TINYINT UNSIGNED | INT2 |
SMALLINT UNSIGNED | INT4 |
MEDIUMINT UNSIGNED | INT4 |
INT UNSIGNED | INT8 |
BIGINT UNSIGNED | NUMERIC |
NUMERIC | NUMERIC |
DECIMAL UNSIGNED | NUMERIC |
FLOAT | FLOAT4 |
FLOAT UNSIGNED | FLOAT4 |
DOUBLE | FLOAT8 |
DOUBLE UNSIGNED | FLOAT8 |
CHAR | CHAR |
VARCHAR | VARCHAR |
TINYTEXT | TEXT |
TEXT | TEXT |
MEDIUMTEXT | TEXT |
LONGTEXT | TEXT |
BINARY | BYTEA |
VARBINARY | BYTEA |
TINYBLOB | BYTEA |
BLOB | BYTEA |
MEDIUMBLOB | BYTEA |
LONGBLOB | BYTEA |
ENUM | TEXT |
SET | TEXT |
DATE | DATE |
DATETIME | TIMESTAMP |
TIMESTAMP | TIMESTAMPTZ |
TIME | TIME |
YEAR | INT2 |
JSON | JSONB |