Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Moved site to another host - coppermine issues  (Read 2414 times)

0 Members and 1 Guest are viewing this topic.

erika_conn

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
Moved site to another host - coppermine issues
« on: June 12, 2008, 02:10:49 pm »

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.   >:(
« Last Edit: June 12, 2008, 02:50:24 pm by François Keller »
Logged

erika_conn

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
Re: Moved site to another host - coppermine issues
« Reply #1 on: June 12, 2008, 02:47:08 pm »

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?
« Last Edit: June 12, 2008, 02:50:53 pm by François Keller »
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Moved site to another host - coppermine issues
« Reply #2 on: June 12, 2008, 02:50:13 pm »

never post your database connection login and password, (replacing with asteriscs)
Logged
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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
Re: Moved site to another host - coppermine issues
« Reply #3 on: June 12, 2008, 02:54:58 pm »

Good point.  I'm too trusting.
Logged

erika_conn

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
Re: Moved site to another host - coppermine issues
« Reply #4 on: June 12, 2008, 03:25:28 pm »

So.  Anyone.  Can you help me?
Logged

Nibbler

  • Guest
Re: Moved site to another host - coppermine issues
« Reply #5 on: June 12, 2008, 03:28:04 pm »

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

erika_conn

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
Re: Moved site to another host - coppermine issues
« Reply #6 on: June 12, 2008, 06:33:09 pm »

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?
Logged

Nibbler

  • Guest
Re: Moved site to another host - coppermine issues
« Reply #7 on: June 12, 2008, 06:36:41 pm »

Make sure the info in include/config.inc.php is correct. You might need to set up a new mysql user.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.