Re: migrate from postgres to mysql

From: Christopher Browne <cbbrowne(at)libertyrms(dot)info>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: migrate from postgres to mysql
Date: 2003-10-03 15:28:20
Message-ID: 60pthebasr.fsf@dev6.int.libertyrms.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

fbenavides(at)interdesa(dot)com ("Fabio Benavides Murillo") writes:
> I have a problem, I want to migrate the data of a postgres' database to a
> mysql's database, this because i need to move to a windows.
>
> I tried making a postgres' backup using pg_dump, but this file doesn't have
> the insert in Transac-sql.
>
> Any help is welcome

Are you sure you are talking about MySQL?

The "Transact-SQL" language was created by Sybase, and is used with
Microsoft SQL Server. MySQL uses a quite different language...

In any case, if you want to have pg_dump generate INSERT statements
rather than COPY statements, look at the manual page for pg_dump, as
there is an option documented to do that...

"Dump data as INSERT commands (rather than COPY). This will make
restoration very slow, but it makes the archives more portable to
other SQL database packages."
--
let name="cbbrowne" and tld="libertyrms.info" in String.concat "@" [name;tld];;
<http://dev6.int.libertyrms.com/>
Christopher Browne
(416) 646 3304 x124 (land)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-10-03 15:35:37 Re: LC_COLLATE=C not working
Previous Message Gene Vital 2003-10-03 15:27:11 updating records