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: change the access to the database  (Read 4124 times)

0 Members and 1 Guest are viewing this topic.

tchernopuss

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Fred-H : blog, pics, projects,...
change the access to the database
« on: December 02, 2009, 05:13:59 pm »

Hello,

My host had to change the password used to access the database. Since then, of course, it's not possible to access the galery anymore. I was wondering in which file do I find the variables used to login to the database...
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: change the access to the database
« Reply #1 on: December 02, 2009, 05:30:15 pm »

include/config.inc.php

This is the sample (include/config.inc.php.sample)
Code: [Select]
?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =     'localhost';   // Your databaseserver
$CONFIG['dbuser'] =       'root';        // Your mysql username
$CONFIG['dbpass'] =       '';            // Your mysql password
$CONFIG['dbname'] =       'coppermine';  // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] = 'cpg141x_';
?>
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: change the access to the database
« Reply #2 on: December 02, 2009, 05:43:19 pm »

<!--Coppermine Photo Gallery 1.4.10 (stable)-->
If this -> http://www.fred-h.net/Coppermine/ is your gallery. Update immediately, you are vulnerable to hackers.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

tchernopuss

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Fred-H : blog, pics, projects,...
Re: change the access to the database
« Reply #3 on: December 02, 2009, 10:56:24 pm »

include/config.inc.php
OK, htank you, I found it... and changed the password. Then replaced the file on the server. But I still have this porblem :
Code: [Select]
Coppermine critical error:
Unable to connect to database !

MySQL said: Accès refusé pour l'utilisateur: 'jeunes'@'@localhost' (mot de passe: OUI)




Update immediately, you are vulnerable to hackers.
That's not the galery i'm talking about, it's in another site. But thank you for the reminder anyway, I'll do it ASAP.
Logged

tchernopuss

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Fred-H : blog, pics, projects,...
Re: change the access to the database
« Reply #4 on: December 02, 2009, 11:18:49 pm »

Cannot see en "edit" button for my previous post (surely I'm too tired), but here we are... I made the upgrade on my own site as advised before, it went great.

But as for the galery I?m speaking about ( http://www.ecublens.ch/jeunes/photos ), I still have the same message, And it also somes in if I try to update : same message. By the way, with that username and password, I have a Joomla site on the same database running smoothly and I have no problem accessing it through phpMyAdmin...
Logged

Nibbler

  • Guest
Re: change the access to the database
« Reply #5 on: December 03, 2009, 12:06:03 am »

The error is obvious. You have an extra @ before 'localhost'.
Logged

tchernopuss

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Fred-H : blog, pics, projects,...
Re: change the access to the database
« Reply #6 on: December 03, 2009, 08:46:16 am »

Except that this @ doesn't appear in my config file...  ???
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 19 queries.