Thursday 3 January 2013

Gallery3 - really quick method of resetting the content of the gallery

If like me you can't find out how to delete multiple images at the same time, here's a very quick method of resetting gallery3 back to it's original configuration in 2 steps.
This will delete all of the photos and the settings of gallery3, but will leave the added modules installed but not enabled. Use this process at you your own peril.

Step 1 - Delete Gallery3's var folder, usually maintained under /var/www/gallery3/var.

rm -rf /var/www/gallery3/var/*
 Step 2 - Drop the database.
$> mysql -u root -p (prompts for the root password interactively)
mysql> show databases;
+--------------------+
| Database                 |
+--------------------+
| information_schema |
| gallery3                   |
| mysql                      |
| performance_schema |
| test                          |
+--------------------+
4 rows in set (0.00 sec)

mysql> use gallery3;
mysql> drop gallery3;
mysql> exit

Now, reconnect to gallery3 with a web browser and reconfigure gallery3 from scratch.

No comments:

Post a Comment