A program to export Progress database to MySQL.
- AprvVend
- Part
- PartBin
- PartDtl
- PartMtl
- PartOpr
- PartPlant
- PartRev
- PlantWhse
- PODetail
- POHeader
- Vendor
- JobAsmbl
- JobHead
- JobMtl
- RcvDtl
- Check if there are database connections
- Query all data from Progress table
- Save SQL file in file system
- Populate corresponding MySql table
To package everything in one neat jar file:
mvn clean compile package
java -jar xpd
Part, PartMtl, PartRev, PartPlant, AprvVend, PlantWhse, Vendor, PartOpr, PartBin, PartDtl, POHeader, PODetail, JobHead, RcvDtl, JobMtl, JobAsmbl
is:
--all : Export all tables. Ignores any supplied table names.
--file-only : Save to SQL file only.
Inserting large amount of data to MySQL is slow, but the performance can be improved. Steps:
- Log into MySQL shell, use: mysql -h localhost -u root -p
- Supply password at prompt
- Check system variables max_allowed_packet and net_buffer_length, use these commands: SHOW GLOBAL VARIABLES LIKE 'max_allowed_packet'; and SHOW GLOBAL VARIABLES LIKE 'net_buffer_length';
- Issue following commands to import large data:
SET foreign_key_checks = 0;
SET UNIQUE_CHECKS = 0;
SET AUTOCOMMIT = 0;
source d:\path\file.sql;
(Once data import complete)
SET foreign_key_checks = 1;
SET UNIQUE_CHECKS = 1;
SET AUTOCOMMIT = 1;
exit;
Thats all!