Re: Migrating PostgreSQL database to MySQL/MS Access

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: RPK <rohitprakash123(at)indiatimes(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Migrating PostgreSQL database to MySQL/MS Access
Date: 2006-08-14 16:16:09
Message-ID: 1155572169.11726.18.camel@dogma.v10.wvs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 2006-08-12 at 08:08 -0700, RPK wrote:
> How can I migrate a PostgreSQL database to MySQL or MS Access? Are there any
> tools available?

Although migrating away from PostgreSQL is not a popular idea on this
list, it can be done.

If you're using any PostgreSQL-specific features, plan how you want
those things to work in MySQL/MSAccess. For everything else, just export
the tables from PostgreSQL using PgAdminIII (www.pgadmin.org)
phpPgAdmin, or just COPY
( http://www.postgresql.org/docs/8.1/static/sql-copy.html ). Then import
them into MySQL/MSAccess. You may need to make some simple changes, like
changing the data type of a column. Also consider writing some quick
scripts using JDBC or ODBC to move data.

Consider whether that's really what you want to do. PostgreSQL can most
likely be run in your environment (it runs on windows, linux, and many
other operating systems). Also, it most likely has far more capability
to do what you want than either MSAccess or MySQL. You can connect to
PostgreSQL with ODBC or JDBC and almost all languages have a PostgreSQL
module in addition to ODBC/JDBC. It is probably worth your time to ask a
few questions on this list to determine how PostgreSQL can work better
for you.

Regards,
Jeff Davis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Harald Fuchs 2006-08-14 16:21:36 Re: Best approach for a "gap-less" sequence
Previous Message Jorge Godoy 2006-08-14 15:32:21 Re: Best approach for a "gap-less" sequence