Sync data from SQLite to MariaDB

Want to sync data from SQLite to MariaDB?

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

Download Withdata DBCopier Download DBCopier

Synchronize data from SQLite to MariaDB

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

Choose source SQLite database and logon.

sync SQLite to MariaDB - Choose SQLite and logon

Choose target MariaDB database and logon.

sync SQLite to MariaDB - Choose MariaDB and logon

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

sync from SQLite to MariaDB - Task Window

then show the wizard.

1. Select source SQLite tables to sync.

sync from SQLite to MariaDB - Open source database

2. List target MariaDB tables.

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

sync data from SQLite to MariaDB - full synchronization

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

sync data from SQLite to MariaDB - upsert synchronization

3. Select MariaDB tables to sync.

sync from SQLite to MariaDB - select tables

4. Sync SQLite data to MariaDB.

sync from SQLite to MariaDB - sync


More about SQLite to MariaDB converter

See also:

SQLite → MariaDB reference

Type mapping

Value kindin SQLitein MariaDB
IntINTEGERINT
BigintINTEGERBIGINT
DecimalNUMERICDECIMAL(p,s)
FloatREALDOUBLE
TextTEXTVARCHAR(n)
Long textTEXTLONGTEXT
DateTEXTDATE
DatetimeTEXTDATETIME
BinaryBLOBLONGBLOB
BooleanINTEGERTINYINT(1)
JSONTEXTJSON

Dialect differences

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

Propertyin SQLitein MariaDB
port(file-based)3306
identifiers"double quotes" or [brackets]`backtick`
datesTEXT (no date type)DATETIME, TIMESTAMP, DATE, TIME
long textTEXTTINYTEXT / TEXT / MEDIUMTEXT / LONGTEXT
binaryBLOBBLOB / TINYBLOB / LONGBLOB

Command line

SideCommand
SQLitesqlite3 .dump
MariaDBmariadb-dump
MariaDB (load)mariadb-import, or LOAD DATA INFILE
SQLite (load).import (sqlite3)

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

Tags: