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
-
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...
-
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_';
?>
-
<!--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.
-
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)
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.
-
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...
-
The error is obvious. You have an extra @ before 'localhost'.
-
Except that this @ doesn't appear in my config file... ???