coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: Eric Chadwick on November 10, 2007, 03:37:33 AM

Title: config.inc.php - add multiple db tables?
Post by: Eric Chadwick on November 10, 2007, 03:37:33 AM
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.
Title: Re: config.inc.php - add multiple db tables?
Post by: Nibbler on November 10, 2007, 04:03:18 PM
You can't do that. You either use one database or the other.
Title: Re: config.inc.php - add multiple db tables?
Post by: Eric Chadwick on November 11, 2007, 06:36:16 PM
OK, thanks for the help.

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