Announcement

#1 2024-01-09 16:28:05

denjensen
Member
2024-01-09
1

PLEASE HELP! Recreate piwigo from complete ftp database folder

Hello/Hi/Greetings,

So now my problem from earlier has changed to me needing to recreate piwigo

I have a full backup of the folder with everything

Is it even possible

I REALLY hope someone will help me

Sincerely Jes

Offline

 

#2 2024-01-10 12:41:48

erAck
Only trying to help
2015-09-06
2036

Re: PLEASE HELP! Recreate piwigo from complete ftp database folder

How are we supposed to know what your "problem from earlier" even was.

Do you also have a backup of the database, not just directory tree and files?

If not, then create a new database with user and then copy the Piwigo file tree to the target location, remove the local/config/database.inc.php file, and start Piwigo installation by following https://piwigo.org/guides/install/manua … stallation

If yes, then simply copy the Piwigo file tree to the target location and recreate and restore the database from the database backup. To restore a single database from a mysqldump backup of all databases (i..e you used mysqldump --all-databases) you can use the command line

Code:

mysql --one-database database_name < all_databases.sql

To restore a database from a single mysqldump backup use

Code:

mysql -u root -p -e "create database database_name"
mysql -u root -p database_name < database_name.sql

In each case of course replace database_name with the actual name of the database, that should also match the $conf['db_base'] value in local/config/database.inc.php.

If you don't have access to the command line you can use phpMyAdmin to import a backup file.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact