Renaming root folder = find/replace in SQL? Renaming root folder = find/replace in SQL?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Renaming root folder = find/replace in SQL?

Started by Eric Chadwick, November 11, 2007, 10:08:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Eric Chadwick

I have restored my gallery to a new folder name, as I need to use the old folder name for different assets. I renamed the gallery root folder, then updated the gallery, and everything seems to work OK except the "I forgot my password" function (sends the user to the old folder name).

The old folder name is still in the db, so I'm wondering if the process is as simple as this...

1. Disable gallery.
2. Backup SQL files.
3. Open SQL files in a text editor, find/replace the folder names.
4. Restore database from the edited SQL files.
5. Update cpg.

Or is there something I'm missing? Are the URIs stored locally by cpg somewhere?

Nibbler

All you need to do is update the link in coppermine's config page. No db editing required.

Eric Chadwick

Awesome. Thanks for pointing out the obvious, I should have seen this.