forum.coppermine-gallery.net

No Support => General discussion (no support!) => Topic started by: caribe on October 21, 2004, 11:40:02 pm

Title: Make a new install of cpmg use a existing database
Post by: caribe on October 21, 2004, 11:40:02 pm
I went to my new config.inc.php and did the changes but when I go to gallery none of the existing albums and users appears.

How can I do that?
Thanks.
Title: Re: Make a new install of cpmg use a existing database
Post by: Joachim Müller on October 22, 2004, 08:22:08 am
do what? More details, please. Links might help as well.

Joachim
Title: Re: Make a new install of cpmg use a existing database
Post by: caribe on October 24, 2004, 11:57:35 pm
I had to install again a cpmg, overitting all files exept albums folder, I have the database (votes, user, albums, comments, etc.) form the previous install on MySQL Server.

How can I make the new install of cpmg to use all the information on the existing database  (votes, user, albums, comments, etc.) in not to batch add again all the pic and recreate all the albums, votes and even visit count?

Thanks.
Title: Re: Make a new install of cpmg use a existing database
Post by: Tranz on October 25, 2004, 12:02:22 am
You just need to make sure that you are connecting to the database correctly. As GauGau said, a link would help.
Title: Re: Make a new install of cpmg use a existing database
Post by: caribe on October 25, 2004, 12:30:29 am
What are the correct steps or setting in orde to connect the database.
unfortunly my link dosn't work because MySQL said: Access denied for user: 'pixserf_copp1@localhost' (Using password: YES)

Because I couldn't found the problem I install a in another directory a new cpmg and still using the database.

Anyway this is the link: http:eventos.pixser.net/ep
Thanks
Title: Re: Make a new install of cpmg use a existing database
Post by: Tranz on October 25, 2004, 12:38:19 am
You would need to have the correct info on the database name, user, and password. If you don't have it, you would need to ask your host for help.
Title: Re: Make a new install of cpmg use a existing database
Post by: caribe on October 25, 2004, 12:51:04 am
Once I have  database name, user, and password, wich I do where do I setup this info beside the I the setup install of the cpmg that gides you for the first time you run the gallery wich I did.

Thanks
Title: Re: Make a new install of cpmg use a existing database
Post by: Tranz on October 25, 2004, 01:04:20 am
You would need to edit config.inc.php
$CONFIG['dbserver'] =                         "localhost";        // Your database server
$CONFIG['dbuser'] =                         "pixserf_copp1";        // Your mysql username
$CONFIG['dbpass'] =                         "whateverpassword";                // Your mysql password
$CONFIG['dbname'] =                         "pixserf_whatevername";        // Your mysql database name

$CONFIG['TABLE_PREFIX'] =                "cpg11d_"; //edit accordingly

The things after // are comments and are ignored by the php parser. No need to edit them.