Sync data from Redshift to MariaDB

Want to sync data from Redshift to MariaDB?

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

Download Withdata DBCopier Download DBCopier

Synchronize data from Redshift to MariaDB

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

Choose source Redshift database and logon.

sync Redshift to MariaDB - Choose Redshift and logon

Choose target MariaDB database and logon.

sync Redshift to MariaDB - Choose MariaDB and logon

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

sync from Redshift to MariaDB - Task Window

then show the wizard.

1. Select source Redshift tables to sync.

sync from Redshift to MariaDB - Open source database

2. List target MariaDB tables.

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

sync data from Redshift to MariaDB - full synchronization

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

sync data from Redshift to MariaDB - upsert synchronization

3. Select MariaDB tables to sync.

sync from Redshift to MariaDB - select tables

4. Sync Redshift data to MariaDB.

sync from Redshift to MariaDB - sync


More about Redshift to MariaDB converter

See also:

Redshift → MariaDB reference

Type mapping

Value kindin Redshiftin MariaDB
IntintegerINT
BigintbigintBIGINT
Decimalnumeric(p,s)DECIMAL(p,s)
Floatdouble precisionDOUBLE
Textvarchar(n)VARCHAR(n)
Long textvarchar(max)LONGTEXT
DatedateDATE
DatetimetimestampDATETIME
Binary(none)LONGBLOB
BooleanbooleanTINYINT(1)
JSONsuperJSON

Dialect differences

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

Propertyin Redshiftin MariaDB
port54393306
identifiers"double quotes"`backtick`
datestimestamp, dateDATETIME, TIMESTAMP, DATE, TIME
long textVARCHAR(MAX)TINYTEXT / TEXT / MEDIUMTEXT / LONGTEXT
binary—BLOB / TINYBLOB / LONGBLOB

Command line

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

No counterpart

  • MariaDB has no equivalent for Binary – it has to be flattened or dropped.

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