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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.