Unix Technical Forum

I have a question?

This is a discussion on I have a question? within the pgsql Admins forums, part of the PostgreSQL category; --> Dear Firends: Now I want to migrate all data from MySQL to PostGRESQL.There are hands of tables in MySQL.I ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 05:59 AM
cruise0078
 
Posts: n/a
Default I have a question?

Dear Firends:
Now I want to migrate all data from MySQL to PostGRESQL.There are hands of tables in MySQL.I want to to know if there are some tools to help me to do that.Also I want to know the key point to finish that process and how much time it may take! Very Thanks!
cruise dong
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 05:59 AM
Andy Shellam
 
Posts: n/a
Default Re: I have a question?

Hmm,

Not sure about an easy way to do this using Postgres's built-in tools - try
www.sqlmanager.net - they have lots of export tools to export data from one
system to another, and they do 30-day trials of most of them.

Andy

_____

From: pgsql-admin-owner@postgresql.org [mailtogsql-admin-owner@postgresql.
org] On Behalf Of cruise0078
Sent: Friday, 07 April, 2006 5:35 am
To: pgsql-admin@postgresql.org
Subject: [ADMIN] I have a question?


Dear Firends:
Now I want to migrate all data from MySQL to PostGRESQL.There are hands of
tables in MySQL.I want to to know if there are some tools to help me to do
that.Also I want to know the key point to finish that process and how much
time it may take! Very Thanks!
cruise dong







你 知 道 2006 年 最 火 爆 的 电 子 邮 箱 吗 ?
多 达 1.1 亿 中 国 人 选 择 网 易 <http://www.126.com/help/126fab.htm> 2000
兆 免 费 邮 箱 , 抢 注 再 得 280 兆 超 大 网 盘
!DSPAM:14,4436b1ad33691062811647!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 05:59 AM
Milen Dzhumerov
 
Posts: n/a
Default Re: I have a question?

cruise0078 wrote:
> Dear Firends:
> Now I want to migrate all data from MySQL to PostGRESQL.There are
> hands of tables in MySQL.I want to to know if there are some tools to
> help me to do that.Also I want to know the key point to finish that
> process and how much time it may take! Very Thanks!
> cruise dong
>
>
>
>
>
>
> 你 知 道 2006 年 最 火 爆 的 电子 邮 箱 吗 ?
> 多 达 1.1 亿 中 国人 选 择 网 易 2000 兆 免 费 邮 箱 , 抢 注 再 得
> 280 兆 超 大 网 盘 <http://www.126.com/help/126fab.htm>

You can use phpMyAdmin's functionality to export all the data to
standard SQL files (.sql) and then use these to put the data back into
PostgreSQL.

Regards,
gamehack

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 06:00 AM
Andy Shellam
 
Posts: n/a
Default Re: I have a question?

mySQL uses a weird CREATE TABLE syntax (with added options like table engine
type etc) that Postgres errors on - so some manual editing of the SQL dump
will be necessary. An export tool is probably the best way to go, that'll
read data from one ODBC driver and write it to another. www.sqlmanager.net
has some useful tools like that, and for a one-off job most of them come as
30-day trials.

Andy

-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailtogsql-admin-owner@postgresql.
org] On Behalf Of Milen Dzhumerov
Sent: Sunday, 09 April, 2006 10:37 pm
To: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] I have a question?

cruise0078 wrote:
> Dear Firends:
> Now I want to migrate all data from MySQL to PostGRESQL.There are
> hands of tables in MySQL.I want to to know if there are some tools to
> help me to do that.Also I want to know the key point to finish that
> process and how much time it may take! Very Thanks!
> cruise dong
>
>
>
>
>
>
> 你 知 道 2006 年 最 火 爆 的 电子 邮 箱 吗 ?
> 多 达 1.1 亿 中 国人 选 择 网 易 2000 兆 免 费 邮 箱 , 抢 注 再 得
> 280 兆 超 大 网 盘 <http://www.126.com/help/126fab.htm>

You can use phpMyAdmin's functionality to export all the data to
standard SQL files (.sql) and then use these to put the data back into
PostgreSQL.

Regards,
gamehack

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

!DSPAM:14,44397f0d33691259350361!





---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com