pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dirk Heinrichs <heini@chaos.tng.oche.de>
To: pgsql-admin@postgresql.org
Subject: Re: Importing table from mysql
Date: Mon, 12 Jun 2000 10:05:17 +0200
Message-ID: <00061210073100.16281@linux> (raw)
In-Reply-To: <3.0.5.32.20000602173124.0081d470@fmol.5sigcmd.army.mil>
References: <3.0.5.32.20000602173124.0081d470@fmol.5sigcmd.army.mil>

On Fre, 02 Jun 2000, Anthony E. Greene wrote:
>At 11:17 2000-06-02 +0530, Pragati Sagar wrote:
>>I already have  a database created in mysql. But now I want to shift from
>>mysql to postgresql but my problem is how to convert mysql database to
>>postgresql. How will I import the tables from mysql? Please help me with
>>this as I have not been able to find any diocumentaion on the net.
>
>Does mysql have a command analogous to pg_dump? If you could get all the
>data out and include the SQL commands it takes to recreate the database,
>that would be best.
>
>Alternatively, you export the data into tab or comma-delimited text files
>and use the \copy command in psql to import it into existing tables.

You could also write a perl script, that fetches the data from the mysql db
and inserts it into the psql db using DBI.

Bye...

	Dirk



view thread (3+ messages)

Message-ID: <00061210073100.16281@linux>
Permalink:  ../00061210073100.16281@linux/
Also on:    postgresql.org/message-id/00061210073100.16281@linux

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: heini@chaos.tng.oche.de
  Subject: Re: Importing table from mysql
  In-Reply-To: <00061210073100.16281@linux>
  References: <3.0.5.32.20000602173124.0081d470@fmol.5sigcmd.army.mil> <00061210073100.16281@linux>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox