Advanced search  

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

Pages: [1]   Go Down

Author Topic: Coppermine critical error: Unable to connect to database !  (Read 5408 times)

0 Members and 1 Guest are viewing this topic.

riocalle

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

Hi i transferred a host and uploaded the files and database to a new host.  after creatting the database, username and password, and importing the database from backup files, i got this this error when i tried to locate the file on www.ccebunet/premium/pics1:
-----

Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'prem'@'localhost' (using password: YES)

<?php
// Coppermine configuration file
-----
below is my include/config.inc.php setting.

i am hosted on webhosting buzz and im dying to resolve this. i entered and reentered my db username and passwordby i got same issues.  hoping your kind and favorable reply.

thanks

----

« Last Edit: May 07, 2009, 02:06:07 pm by Hein Traag »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Coppermine critical error: Unable to connect to database !
« Reply #1 on: May 07, 2009, 02:07:49 pm »

Website url is not valid. Posting your config file settings is just plain .. let's say unwise.

Did you already check this with your host? It does happen that localhost does not work but you have to fil in the url for a sql server.
Logged

riocalle

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Coppermine critical error: Unable to connect to database !
« Reply #2 on: May 07, 2009, 02:16:27 pm »

i mean ccebu.net/premium/pics

wat do you mean by filling in the url for a sql server?  like wat based on the settings above?
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Coppermine critical error: Unable to connect to database !
« Reply #3 on: May 07, 2009, 02:22:59 pm »

Instead of typing localhost for the server you get something such as sql.host.com for example. Did you check this problem with your host as wel? It is a mysql connection problem.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Coppermine critical error: Unable to connect to database !
« Reply #4 on: May 07, 2009, 11:01:52 pm »

Ask your webhost in this case - we can't help you with that. Only your webhost can.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.