Re: Getting Mysql data into Postgres: least painful methods?

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Getting Mysql data into Postgres: least painful methods?
Date: 2013-01-12 00:30:57
Message-ID: alpine.LNX.2.00.1301111627070.741@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 11 Jan 2013, Ken Tanzer wrote:

> I'm wondering if anyone can point me towards a good method for moving
> mysql data into Postgres?

I had to do this last year with the ITIS (Integrated Taxonomic Information
System) maintained by the US Geological Survey.

Some MySQL key words were immediately recognized and I used emac's
global-search-and-replace to change them to postgres words. Then I tried
reading in individual tables to a newly created database and redirected
errors to a disk file. I fixed the errors postgres identified, dropped the
table, and repeated until there were no errors. Took a bit of time but
worked just fine.

Then I sent the USGS database maintainer a dump of the postgres database
because he wanted to migrate from mysql to postgres there. I think of it as
a public service. :-)

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2013-01-12 00:55:12 Re: Libpq and multithreading
Previous Message wd 2013-01-12 00:30:29 Re: Getting Mysql data into Postgres: least painful methods?