hi,
i did an update test of my prod gallery and it worked like a charm :)
now, i'd like to switch database from mysql to pgsql during the upgrade.
to do this, i have to convert the mysql to a pgsql dump.
do you already have a script for this purpose?
if not, can you give me some hints for possible pitfalls i have to take care of?
any help before i attempt the migration is very welcome :)
tia,
duke.
Offline
Hi duke,
Nice to hear this feedback. I think 5 or 6 complete migrations have been reported and all of them are working "like a charm". (so that means many more silent beta testers)
There is absolutely no automatic procedure to convert from MySQL to PostgreSQL or SQLite. I've been working at Talend for 3.5 years and database engine conversion was one of the main task Talend Open Studio does. Later this year, I think I will work on this issue (I'm mainly interested in MySQL to/from SQLite conversion).
Offline
duke wrote:
now, i'd like to switch database from mysql to pgsql during the upgrade.
to do this, i have to convert the mysql to a pgsql dump.
do you already have a script for this purpose?
if not, can you give me some hints for possible pitfalls i have to take care of?
any help before i attempt the migration is very welcome :)
I think it's not difficult. I made migration during database abstraction developement.
I can watch on a minimal migration script but anyway the idea is to upgrade from latest piwigo version, dump the datas (without structure) from mysql, create the postgres database (new installation) and import datas into postgres.
Same process for SQLite
Last edited by nicolas (2010-05-05 10:24:42)
Offline
yeah, i thought so as well. manual it is.
migration of phpBB from mysql to pgsql was a hassle, but a quick look
at piwigo's pgsql structure suggests a migration without headache :)
bye,
duke.
Offline
duke wrote:
yeah, i thought so as well. manual it is.
migration of phpBB from mysql to pgsql was a hassle, but a quick look
at piwigo's pgsql structure suggests a migration without headache :)
bye,
duke.
If you can wait a little I can write a minimal migration script.
Offline
nicolas wrote:
If you can wait a little I can write a minimal migration script.
sure, that would be great.
i won't upgrade before 2.1 final anyway ;-)
Offline
duke wrote:
nicolas wrote:
If you can wait a little I can write a minimal migration script.
sure, that would be great.
i won't upgrade before 2.1 final anyway ;-)
Ok. I will post here when I write a first version.
Offline
I made a first release for a plugin to migrate from Mysql to others databses (SQLite or PostgreSQL).
I open a discussion on the forum : [Forum, topic 15955] Database migration
The plugin is available : [extension by ]
Edit
Update link
Last edited by ddtddt (2010-05-18 13:09:36)
Offline
awesome :)
i'll upgrade piwigo this weekend and will migrate to postgres with your plugin.
thx alot mate!
Last edited by duke (2010-05-19 22:50:00)
Offline
duke wrote:
awesome :)
i'll upgrade piwigo this weekend and will migrate to postgres with your plugin.
thx alot mate!
Don't hesitate to tell me if you encounter any problem. Post on the dedicated topic will be easier to follow : [Forum, topic 15955] Database migration
Last edited by nicolas (2010-05-19 23:13:34)
Offline