coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: shutterhappy on November 02, 2007, 09:17:43 PM

Title: where does cpg store the name of the database it is using
Post by: shutterhappy on November 02, 2007, 09:17:43 PM
 ??? ??? ???
I have recently had some installation problems that were unrelated to coppermine.  The short of the story is that I know I have more MySql databases named xxx_cpg1throughwhatever than I have installations.

Which file does CPG use to store the name of the database that installation is using?
??? ??? ???

Your help is appreciated in advance.

Peter

Title: Re: where does cpg store the name of the database it is using
Post by: shutterhappy on November 02, 2007, 09:18:24 PM
I should add that the obvious reason for this is so that I can delete the unneeded db's.
Title: Re: where does cpg store the name of the database it is using
Post by: François Keller on November 03, 2007, 11:51:10 AM
do you ask about database or database tables ?
database name the table prefix used for your gallery are stored in the config.inc.php file.
Title: Re: where does cpg store the name of the database it is using
Post by: shutterhappy on November 03, 2007, 02:00:11 PM
 :) :o :)

Thank you very much.

I was asking about the database itself -- I wanted to go through all the installs that still existed and delete those databases that were no longer being used.

I thought I had looked at all the files that started with config, but I guess not. 

I found what I needed. 

Cheers to you!

Peter

:)  :o :)
Title: Re: where does cpg store the name of the database it is using
Post by: Joachim Müller on November 03, 2007, 06:07:33 PM
Coppermine doesn't create databases during install, only database tables. As suggested: the information about the mysql data used reside in include/config.inc.php
Title: Re: where does cpg store the name of the database it is using
Post by: shutterhappy on November 03, 2007, 07:35:22 PM
Gaugau,

I realize that coppermine does not create databases during install -- I did. 

But I negelcted to write down the names of which ones went with which installs -- before a domain swap which confused several installs..... In which case I needed to replace the install quickly and figure out which one was no long being used after the fact.

I have the information I need.  Thanks.

p