On 12/21/11 15:11, Tanstaafl wrote:
> Hi all,
> 
> Ok, this has been on my ToDo list for a while, and I'm thinking of
> tacking this over the holidays, since the office will be much slower
> than usual.
> 
> The only databases I have in use are for my mail server, which means
> postfix, courier-imap (soon to be dovecot 2.1 once it is released) and
> postfixadmin for maintaining the database.
> 
> First question - I can run both mysql and postgresql at the same time,
> right? I haven't found anything saying I can't, and mysql doesn't seem
> to 'block' installing postgresql, so I'm guessing I can.
> 
> Second question - has anyone ever converted an existing production mysql
> database to postgresql? If you have ever done this specifically for
> postfixadmin, I'd love to chat for a few minutes, but pointers to
> recent, accurate docs - even generically (not specifically for
> postfixadmin) for doing this would be appreciated.

Postfixadmin supports postgres, so you start by installing postgres
alongside your mysql installation, Next, run the postfixadmin scripts to
create the (empty) tables in your postgres database. All of the
postgres-specific stuff happens here, and postfixadmin does it for you.

After that, you just dump the mysql data, and load them into postgres.
Check out `man mysqldump` for some important options. This is the one I
remember off the top of my head:

  --compatible=name

    Produce output that is more compatible with other database systems
    or with older MySQL servers. The value of name can be ansi,
    mysql323, mysql40, postgresql...

Reply via email to