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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.