Open Wikinaut opened 7 years ago
Hmmm, I guess you'd have to customize the script and replace one mysql connection with a postrgres connection.
The two connections are completely separate from each other, so changing one to Postgres should be straightforward.
Thanks for your swift answer.
In your instructions, are you really sure here
* first copy the contents of g2data/albums to piwigo/galleries
?
In my new Piwigo installation (2.9.2) I have /piwigo/upload (with a single test image I just uploaded) and in /piwigo/galleries I currently see only a short index.php script.
Good question. I have to admit that I haven't tested this with more recent piwigo versions. It is possible that changes in piwigo occurred since I wrote the converter.
@dschwen Okay. Please can you tell me, into what directory the gallery2-images should be moved ? The directory, where other images live?
@dschwen In my version I see
/var/www/html/Piwigo/upload$ dir
total 16
4 drwxrwxrwx 4 www-data www-data 4096 Nov 27 11:31 .
4 drwxr-xr-x 16 www-data www-data 4096 Nov 27 11:31 ..
4 drwxrwxrwx 3 www-data www-data 4096 Nov 27 11:31 2017
4 drwxrwxrwx 2 www-data www-data 4096 Nov 27 11:31 buffer
One had to copy gallery2/albums to piwigo/galleries , so your explanation is still correct for the present version!
First observation (not your problem, of course):
piwigo is a very bitchy program, for example, piwigo-synchronize ignores images (image files) with spaces in the filenames.
Okay, I'll ask the obvious question here...were you actually able to do this migration? I'm trying to figure out what I'm going to need to do for this same migration.
@rbroberts Basically yes, I was able to convert from PostgreSQL to MySQL. I did not care about the comments, which as far as I remember, were lost, because I was too lazy to convert the three or four or ten comments we had on a couple of thousands of images.
Thanks for that follow-up. I'll give this a shot.
Hello Daniel,
is there also a script, or do you have instructions, to convert a Gallery2 (PostgreSQL) to Piwigo (MySQL) ?
Here the basic data of my old installation: