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: New server, database name issue.  (Read 4495 times)

0 Members and 1 Guest are viewing this topic.

Montezuma

  • Coppermine novice
  • *
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 41
New server, database name issue.
« on: February 11, 2014, 03:34:42 am »

I've decided to move my server to a hosted (rather than self-hosted) site.  They have a system that automatically installs Coppermine but it also gives the database a generic name.  I deleted the database it created and imported my database but now I get this error message when I try to run Coppermine the first time:

Coppermine critical error:
Unable to connect to database !

MySQL said: Unknown database 'zfn_lcejjbdk51'

I'm sure there is an easy fix but I don't know it, so what do I do?
Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: New server, database name issue.
« Reply #1 on: February 11, 2014, 04:16:27 am »

They have a system that automatically installs Coppermine...
Please don't use that... We won't be able to support you.
http://documentation.coppermine-gallery.net/en/auto-installers.htm

Quote
... but it also gives the database a generic name.  I deleted the database it created and imported my database but now I get this error message when I try to run Coppermine the first time:

Coppermine critical error:
Unable to connect to database !

MySQL said: Unknown database 'zfn_lcejjbdk51'
Coppermine's include/config.inc.php and your database name and credentials must match....

A fresh install giving the installer your desired database credentials, then importing your data should get everything in synch, and have you on a current version (1.5.26) and supportable by developers here.

You can just upgrade to current package, and fix the config issue manually if you prefer - but please use our package.

Thanks.
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Montezuma

  • Coppermine novice
  • *
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 41
Re: New server, database name issue.
« Reply #2 on: February 11, 2014, 06:24:42 am »

I've ran my own server for over a decade so I'm just learning what I can and can't do with a hosted server.  If I can figure out how to install it manually, I will.

At this time, is there a editable file that I can change the database name or is this buried somewhere?

Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4822
    • Windsurf.me
Re: New server, database name issue.
« Reply #3 on: February 11, 2014, 08:01:46 am »

Yes, as per the post from gmc above the credentials are in /include/config.inc.php
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Montezuma

  • Coppermine novice
  • *
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 41
Re: New server, database name issue.
« Reply #4 on: February 11, 2014, 05:28:05 pm »

Thanks, that got me going.  I'm hoping that they got the install done as Coppermine intended with no alterations and there won't be any hang ups.  The did have an additional option for updating the versions too.  I'll keep my backup of the database no matter what. 

It's just for family photos so if I have to start from scratch, no one will be too upset.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.