Re: Importing MySQL dump into PostgreSQL 8.2

Поиск
Список
Период
Сортировка
От wido
Тема Re: Importing MySQL dump into PostgreSQL 8.2
Дата
Msg-id 1192224329.577258.161020@t8g2000prg.googlegroups.com
обсуждение исходный текст
Ответ на Re: Importing MySQL dump into PostgreSQL 8.2  (Chris <dmagick@gmail.com>)
Ответы Re: Importing MySQL dump into PostgreSQL 8.2  ("Andrej Ricnik-Bay" <andrej.groups@gmail.com>)
Re: Importing MySQL dump into PostgreSQL 8.2  (Alan Hodgson <ahodgson@simkin.ca>)
Список pgsql-general
On 5 oct, 01:06, dmag...@gmail.com (Chris) wrote:
> Jeff Lanzarotta wrote:
> > Hello,
>
> > I have a MySQL dump file that I would like to import into our PostgreSQL
> > 8.2 database. Is there a way to do this?
>
> You'll need to convert the table definitions then the data.
>
> For example, mysql has int(11) columns, postgres only has int columns.
>
> I usually convert the tables, then do a csv dump from mysql:
>
> select * from table into outfile '/path/to/file';
>
> then import into postgres:
>
> \copy table from '/path/to/file'
>
> --
> Postgresql & php tutorialshttp://www.designmagick.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

hi! but what happens when somebody sent you a dump file and you can't
convert the tables? all i have is a 116MB sql file, and i won't
convert it by hand :P


В списке pgsql-general по дате отправления:

Предыдущее
От: "Andrus"
Дата:
Сообщение: Invalid error message when user has nologin attibute
Следующее
От: "detrox yang"
Дата:
Сообщение: Re: how to ignore invalid byte sequence for encoding without using sql_ascii?