Sync data from MariaDB to Redshift

Want to sync data from MariaDB to Redshift?

Try Withdata DBCopier, a MariaDB to Redshift converter for Windows, Mac, and Linux, Synchronize MariaDB to Redshift, Easy and Fast.

Download Withdata DBCopier Download DBCopier

Synchronize data from MariaDB to Redshift

Login to MariaDB and target Redshift -> Select source MariaDB tables -> Set target Redshift tables -> Sync MariaDB data to Redshift

Choose source MariaDB database and logon.

sync MariaDB to Redshift - Choose MariaDB and logon

Choose target Redshift database and logon.

sync MariaDB to Redshift - Choose Redshift and logon

Click “Wizard – Import All Tables” at task dialog.

sync from MariaDB to Redshift - Task Window

then show the wizard.

1. Select source MariaDB tables to sync.

sync from MariaDB to Redshift - Open source database

2. List target Redshift tables.

Set “Import Type” to “Replace”, it will do a full synchronization.

sync data from MariaDB to Redshift - full synchronization

Or set “Import Type” to “Upsert”, it will do a upsert synchronization.

sync data from MariaDB to Redshift - upsert synchronization

3. Select Redshift tables to sync.

sync from MariaDB to Redshift - select tables

4. Sync MariaDB data to Redshift.

sync from MariaDB to Redshift - sync


More about MariaDB to Redshift converter

See also:

MariaDB → Redshift reference

Type mapping

Value kindin MariaDBin Redshift
IntINTinteger
BigintBIGINTbigint
DecimalDECIMAL(p,s)numeric(p,s)
FloatDOUBLEdouble precision
TextVARCHAR(n)varchar(n)
Long textLONGTEXTvarchar(max)
DateDATEdate
DatetimeDATETIMEtimestamp
BinaryLONGBLOB(none)
BooleanTINYINT(1)boolean
JSONJSONsuper

Dialect differences

Both MariaDB and Redshift are database servers, so the differences below are dialect-level: the same concept is spelled differently on each side.

Propertyin MariaDBin Redshift
port33065439
identifiers`backtick`"double quotes"
datesDATETIME, TIMESTAMP, DATE, TIMEtimestamp, date
long textTINYTEXT / TEXT / MEDIUMTEXT / LONGTEXTVARCHAR(MAX)
binaryBLOB / TINYBLOB / LONGBLOB—

Command line

SideCommand
MariaDBmariadb-dump
RedshiftUNLOAD to S3
Redshift (load)COPY from S3
MariaDB (load)mariadb-import, or LOAD DATA INFILE

No counterpart

  • MariaDB values of kind Binary have nowhere to go in Redshift.

Convert your data online, free

Free in-browser converters for CSV, Excel, JSON, XML and SQL: Withdata Online Data Conversion. Large files, batch conversion or scheduling? See the offline desktop apps, or browse all data conversion tools.


Posted

in

by