Make a new install of cpmg use a existing database Make a new install of cpmg use a existing database
 

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

Make a new install of cpmg use a existing database

Started by caribe, October 21, 2004, 11:40:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

caribe

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.

Joachim Müller

do what? More details, please. Links might help as well.

Joachim

caribe

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.

Tranz

You just need to make sure that you are connecting to the database correctly. As GauGau said, a link would help.

caribe

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

Tranz

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.

caribe

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

Tranz

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.