Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4E40464FD33 for ; Thu, 4 Sep 2008 17:03:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 30661-02 for ; Thu, 4 Sep 2008 17:03:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from server.firetrust.net (mailserver.firetrust.com [209.213.221.13]) by postgresql.org (Postfix) with ESMTP id E1BDA64FCEF for ; Thu, 4 Sep 2008 17:03:25 -0300 (ADT) Received: from xpc (203-109-144-176.static.bliink.ihug.co.nz [203.109.144.176] (may be forged)) (authenticated bits=0) by server.firetrust.net (8.14.3/8.14.3) with ESMTP id m84K3I5T024694 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 5 Sep 2008 08:03:21 +1200 Date: Fri, 5 Sep 2008 08:03:16 +1200 From: Steve Holdoway To: pgsql-admin@postgresql.org Subject: Re: Database Conversion Message-Id: <20080905080316.8c88dcd4.steve.holdoway@firetrust.com> In-Reply-To: <9B852776-95B1-41E2-B6A8-DFA92F7C410F@indiana.edu> References: <9B852776-95B1-41E2-B6A8-DFA92F7C410F@indiana.edu> Organization: Firetrust Ltd. X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-MailWasher-Server-Scanned: Checked by MailWasher server v2.3.2 (www.Firetrust.com) X-MailWasher-Server-Status: Clean X-Virus-Scanned: ClamAV 0.93.3/8162/Fri Sep 5 04:38:45 2008 on server.firetrust.net X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/31 X-Sequence-Number: 30124 On Thu, 4 Sep 2008 09:24:34 -0400 Carol Walter wrote: > Hello, All, > > I have a new faculty member who has a large database that is in > MySQL. We don't support MySQL so the database needs to be ported to > PostgreSQL. Her GA, who know MySQL, says that he has a query that he > will run that will put the data into postgres. I thought that the > data would have to be output to a text file and then copied into > postgres. I don't know MySQL. I've done a conversion from Oracle > and this is how I did it. Is he correct that he can put the data > into a postgres database by running a MySQL query? It doesn't sound > possible to me. > > Carol > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin I'd use mysqldump to create 2 files: the first being the schema, which I'd tweak to suit ( implementing tablespaces for example ), and then a second dump, which exports the data in a format that is acceptable to postgres. That way, you end up with what you want in a simple, repeatable manner. If it's mysql 5 then the stored procedures may need to be converted - I know there are tools out there, but haven't used them and can't comment. Steve -- Steve Holdoway