forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: tchernopuss on December 02, 2009, 05:13:59 pm

Title: change the access to the database
Post by: tchernopuss 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...
Title: Re: change the access to the database
Post by: Jeff Bailey 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_';
?>
Title: Re: change the access to the database
Post by: Jeff Bailey 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.
Title: Re: change the access to the database
Post by: tchernopuss 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.
Title: Re: change the access to the database
Post by: tchernopuss 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...
Title: Re: change the access to the database
Post by: Nibbler on December 03, 2009, 12:06:03 am
The error is obvious. You have an extra @ before 'localhost'.
Title: Re: change the access to the database
Post by: tchernopuss on December 03, 2009, 08:46:16 am
Except that this @ doesn't appear in my config file...  ???