* Re: [gentoo-user] switching production server from myswl to postgresql
@ 2011-12-22 16:41 99% ` Michael Orlitzky
0 siblings, 0 replies; 1+ results
From: Michael Orlitzky @ 2011-12-22 16:41 UTC (permalink / raw
To: gentoo-user
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...
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-12-21 20:11 [gentoo-user] switching production server from myswl to postgresql Tanstaafl
2011-12-22 16:41 99% ` Michael Orlitzky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox