From: | Joe <dev(at)freedomcircle(dot)net> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: MySQL DB to PostgresSQL DB |
Date: | 2006-05-18 14:23:12 |
Message-ID: | 446C8350.5010606@freedomcircle.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice pgsql-sql pgsql-www |
Jose Apablaza wrote:
> - Is posible to export MySQL DB to PostgreSQL DB?
> - Does PostgreSQL DB has tools to import MySQL DB?
> - If is posible, How do I need to build the DB in MySQL?, in order to
> have success in the exportation.
> - Do someone did it before?, exporting MySQL DB to PostgreSQL DB?
> - What kind of risk do we can to have in this process?
> - How long can take this process?
Yes, it's doable, but it's not as straighforward as
mysqldump -someflags mydbname | psql -someotherflags pgdbname
I suggest you start by checking the resources/articles in the MySQL
section of http://www.postgresql.org/docs/techdocs.3 (which I'm glad to
say is much better organized and comprehensive than when I had to do
it). FWIW, I converted using CSV as the intermediate format, and the
dates and timestamps were the trickiest, which required the use of
"staging" tables (with a textual representation of the columns). An
interesting side effect was discovering data inconsistencies in the
MySQL database since as part of the conversion I implemented foreign key
constraints under PostgreSQL (which were missing in the former).
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Verena Ruff | 2006-05-18 15:00:51 | Re: select count(*) and limit |
Previous Message | John DeSoi | 2006-05-18 14:02:08 | Re: select count(*) and limit |
From | Date | Subject | |
---|---|---|---|
Next Message | Guillaume Lelarge | 2006-05-18 15:43:19 | Re: Add column and specify the column position in a table |
Previous Message | Alvaro Herrera | 2006-05-18 14:00:14 | Re: Add column and specify the column position in a table |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2006-05-18 14:53:05 | Re: [pgadmin-hackers] developer.pgadmin.org/nagios.pgadmin.org server - update |
Previous Message | Simon Riggs | 2006-05-18 11:07:29 | Re: Sun Server Location |