Moved site to another host - coppermine issues Moved site to another host - coppermine issues
 

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

Moved site to another host - coppermine issues

Started by erika_conn, June 12, 2008, 02:10:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

erika_conn

http://ceconn.com/photo_gallery

Looks like coppermine is connecting to the wrong database or something.  When that address is typed in, a convoluted main site appears. 

How can I correct this and have it point to the proper database?

I've got the tables in phpmyadmin.  That seems right.   >:(

erika_conn

#1
Just adding to the previous call for help, the config.inc.php looks like this:

<?php
// Coppermine configuration file
// Silly safe mode
define('SILLY_SAFE_MODE', 1);


// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your database server
$CONFIG['dbuser'] =                         'cecon46_gallery';        // Your mysql username
$CONFIG['dbpass'] =                         '*******';                // Your mysql password
$CONFIG['dbname'] =                         '*******';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg148_';
?>


The database server is right.  The mysql database name is right; The mysql password is different with the new host; mysql username is different with the new host.  The prefixes for the phpmysql tables are all cpg148 with the new host, too.

My head tells me I should change some of the values to reflect my new database.  What do you think?

François Keller

never post your database connection login and password, (replacing with asteriscs)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

erika_conn


erika_conn


Nibbler

Looks like the main site has a rewrite that is intercepting the gallery URL. Not a Coppermine issue.

erika_conn

Apparently the .htaccess file was repaired but now I'm getting the following error when trying to connect.

Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'cecon46_gallery'@'localhost' to database 'cecon46_gallery'

Any suggestions?

Nibbler

Make sure the info in include/config.inc.php is correct. You might need to set up a new mysql user.