change the access to the database change the access to the database
 

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

change the access to the database

Started by tchernopuss, December 02, 2009, 05:13:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tchernopuss

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...

Jeff Bailey

include/config.inc.php

This is the sample (include/config.inc.php.sample)
?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_';
?>
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Jeff Bailey

<!--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.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

tchernopuss

Quote from: Jeff Bailey on December 02, 2009, 05:30:15 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 :
Coppermine critical error:
Unable to connect to database !

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





Quote from: Jeff Bailey on December 02, 2009, 05:43:19 PM
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.

tchernopuss

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...

Nibbler

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

tchernopuss

Except that this @ doesn't appear in my config file...  ???