coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Eric Chadwick on November 11, 2007, 10:08:24 PM

Title: Renaming root folder = find/replace in SQL?
Post by: Eric Chadwick on November 11, 2007, 10:08:24 PM
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?
Title: Re: Renaming root folder = find/replace in SQL?
Post by: Nibbler on November 11, 2007, 10:47:30 PM
All you need to do is update the link in coppermine's config page. No db editing required.
Title: Re: Renaming root folder = find/replace in SQL?
Post by: Eric Chadwick on November 12, 2007, 01:55:50 AM
Awesome. Thanks for pointing out the obvious, I should have seen this.