Schedule and automate DB2 to MySQL task

Want to schedule and automate from DB2 to MySQL copy data task?

Try Withdata DB Copier, a desktop tool, you can scheduled DB2 to MySQL copy data task easily, just a few mouse clicks!

Let computer automate repetitive DB2 to MySQL transfer data busy work, DB Copier make our life easier!

Here you can download and install DB Copier.

Schedule and automate DB2 to MySQL data task

1. Select and run a task from follow list:

2. Save session and create .bat file.

3. Set scheduled task.


More about Withdata DBCopier – the tool to copy DB2 data to MySQL

30-day free trial Download DBCopier

DB2 → MySQL reference

Type mapping

Value kindin DB2in MySQL
IntINTEGERINT
Long textCLOBLONGTEXT
DatetimeTIMESTAMPDATETIME
BinaryBLOBLONGBLOB
BooleanSMALLINTTINYINT(1)
JSONCLOBJSON

Dialect differences

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

Propertyin DB2in MySQL
port500003306
identifiers"double quotes"`backtick`
row limitFETCH FIRST n ROWSLIMIT n
datesDATE, TIME, TIMESTAMPDATETIME, TIMESTAMP, DATE, TIME
long textCLOBTINYTEXT / TEXT / MEDIUMTEXT / LONGTEXT
binaryBLOBBLOB / TINYBLOB / LONGBLOB

Command line

SideCommand
DB2EXPORT TO out.csv OF DEL
MySQLmysqldump, or mysql -e "SELECT ..." > out.csv
MySQL (load)mysqlimport, or LOAD DATA INFILE
DB2 (load)db2 IMPORT FROM file OF DEL

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