Hello
Can you explain how to do a database migration ?
I need to move all the content from a hosting to another one. So I need to repeat the installation of Piwigo of course, but about the content (images, albums, etc) how to move / migrate all the stuff from web hosting A to web hosting B ?
Please let me know asap it is important and urgent, thank you
guzmanldn
Piwigo version: latest
PHP version: latest
MySQL version: latest
Offline
move files
move database
update database config file
for more details, search the forum.
Offline
thanks for the reply.
so the solution is internal, inside Piwigo ?
or do I need to manage from hosting side ? I mean SQLdatabase ?
please let me know, thank you
Offline
Many web hosts included free website migration. I recently moved a Piwigo gallery. In my case, both hosts included CPanel hosting. I made a backup of the site in CPanel, then provided the backup file to the new host's support team, who then loaded it on to their server.
Offline
guzmanldn wrote:
so the solution is internal, inside Piwigo ?
No.
You
1. backup your entire Piwigo folder (you may exclude the _data/ subdirectory as cached templates and thumbnails will be recreated)
2. dump the database using phpMyAdmin or Adminer or whatever database tool your hoster provides
3. recreate the database on the new server from that dump, again using one of those tools
4. recreate the Piwigo installation and file data from the backup
5. edit local/config/database.inc.php to adapt the $conf['db_...'] variables' values to the new reality
Depending on your new hoster's setup (as which user/group the web server runs) you may have to change permissions on all Piwigo's subdirectories from 755 to 775 and on files from 644 to 664.
If any of those sound like mumbo-jumbo to you then ask your hosting provider(s) for help.
Online