config.inc.php - add multiple db tables? config.inc.php - add multiple db tables?
 

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

config.inc.php - add multiple db tables?

Started by Eric Chadwick, November 10, 2007, 03:37:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Eric Chadwick

How would I go about re-adding an old backed-up gallery to the current gallery list, without throwing away the current galleries?

Some of my old galleries aren't showing up, even though all the source images are still there in Albums. I guess I messed up the db when I added a new gallery last year. I'm finally getting time to fix it now.

Comparing a config.inc.php backup from the old gallery, and the most recent config.inc.php, I see that they point to different database tables...

Backed-up config.inc.php:
$CONFIG['dbname'] =                         'XXXX_cop2';
$CONFIG['TABLE_PREFIX'] =                'cpg132_';

Current config.inc.php:
$CONFIG['dbname'] =                         'XXXX_cpm2';
$CONFIG['TABLE_PREFIX'] =                'cp_';

I couldn't find any docs about the config.inc.php file, is there a resource to point me to? I'm completely inexperienced with SQL, so I'm sorry if all this seems obvious. Today is the first time I've opened phpMyAdmin, and I'm gingerly wading through it now. Both tables seem to be there and in good shape.

Thanks for any help.

Nibbler

You can't do that. You either use one database or the other.

Eric Chadwick

OK, thanks for the help.

Is there a way for me to add to your Karma?