Someone wants me to convert their Postgres backed RT to MySQL. Doesn’t
matter why, they want it.
Here’s what I am thinking.
Shut down the web server.
Dump the DB data.
Reconfigure RT for MySQL.
Run initdb
Load the data.
Restart the RT/web server.
You’re probably in trouble between points 4 and 5 since initdb does
create not only the db objects but also loads data which will be in the
dataset that comes from postgres, if you’re lucky the inital data will
be the same but I wouldn’t bet on it. You could truncate the tables and
reset the sequences but it might be easier to modify initdb to only
create but not load the data.
Someone wants me to convert their Postgres backed RT to MySQL. Doesn’t
matter why, they want it.
Here’s what I am thinking.
Shut down the web server.
Dump the DB data.
Reconfigure RT for MySQL.
Run initdb
Load the data.
Restart the RT/web server.
You’re probably in trouble between points 4 and 5 since initdb does create
not only the db objects but also loads data which will be in the dataset
that comes from postgres, if you’re lucky the inital data will be the same
but I wouldn’t bet on it. You could truncate the tables and reset the
sequences but it might be easier to modify initdb to only create but not
load the data.