EnterpriseDB: The Enterprise Postgres Company Postgres Plus Forums: The PostgreSQL Open Source Database from EnterpriseDB
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 

MySQL Migration problem with enums  XML

Forum Index » Tuning and Migration Wizard
Author Message
Sean_L

New member

Joined: 19 Apr 2007 15:29:33
Messages: 4
Offline

I was testing the MySQL Migration process and I ran into an issue with columns that are defined as enum in MySQL. While Postgres doesn't support the enum type, it does offer two equivalents via custom data types and CHECK constraints. I tried using the Migration tool two ways.

1) Migrate both the schema and data from a MySQL table with an enum column to a clean Postgres database. Migration failed with an error about the enum column.

2) Create the table in Postgres and define the enum column as varchar with a CHECK constraint. Migrate just the data from MySQL to the empty table in Postgres. Migration failed with the same error.

Am I doing something wrong? Is this a known issue? Other than ALTERing the MySQL tables that use enum columns, are there other workarounds?

Any advice would be greatly appreciated! Thanks.

-Sean
Zahid_I

New member

Joined: 22 May 2005 08:31:46
Messages: 7
Offline

You followed the right steps, however currently the "enum" mapping is not being handled by MTK. I have forwarded this case to our development team and will get back to inform about the future release or a quick hot fix (in which you will simply have to download the MTK distro through EnterpriseDB Update service and it'll replace the existing jar on your system) availability to take care of this problem.

Thanks,
Zahid
Zahid_I

New member

Joined: 22 May 2005 08:31:46
Messages: 7
Offline

A correction, the Update Service is not applicable to Migration Wizard, we'll send the details once the updated version of Migration Wizard is available.

Thanks,
Zahid
Talend_G

Member

Joined: 10 Feb 2009 11:07:14
Messages: 15
Offline

What you could also do is use an open source ETL tool. They are free to download.

Talend Open Studio is an open source ETL tool for data integration and migration experts. It's easy to learn for a non-technical user. What distinguishes Talend, when it comes to business users, is the tMap component. It allows the user to get a graphical and functional view of integration processes.
For more information: http://www.talend.com/
provasks_gmail_com

New member

Joined: 16 Sep 2009 01:06:34
Messages: 1
Offline

Sean_L wrote:I was testing the MySQL Migration process and I ran into an issue with columns that are defined as enum in MySQL. While Postgres doesn't support the enum type, it does offer two equivalents via custom data types and CHECK constraints. I tried using the Migration tool two ways.

1) Migrate both the schema and data from a MySQL table with an enum column to a clean Postgres database. Migration failed with an error about the enum column.

2) Create the table in Postgres and define the enum column as varchar with a CHECK constraint. Migrate just the data from MySQL to the empty table in Postgres. Migration failed with the same error.

Am I doing something wrong? Is this a known issue? Other than ALTERing the MySQL tables that use enum columns, are there other workarounds?

Any advice would be greatly appreciated! Thanks.

-Sean




Hi Sean
I have completed step 3 but stuck in the 4th step (Source Schema) to migrate from mysql to postres. could you please tell me what should I give the value here?
-Provas
 
Forum Index » Tuning and Migration Wizard
Go to:   
Powered by JForum 2.1.8 © JForum Team