Unable to Connect to Database Unable to Connect to Database
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Unable to Connect to Database

Started by andyschlei, May 14, 2022, 11:00:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

andyschlei

Sometime in the last couple of weeks, my Coppermine gallery stopped working.  I get the following error message, which unfortunately doesn't help much:
QuoteCoppermine critical error:
Unable to connect to database !

MySQLi said: :

I haven't changed anything in months, so I am at a loss to know what happened.  I don't get anything in the website error logs.

Any and all help would be greatly appreciated!

andyschlei

One other important fact:  I can connect to the database in PHPMyAdmin without any problem.

andyschlei

I've tried upgrading and when I try to run the update.php script I get the same error.

I tried doing a clean install on the website and it works fine.

andyschlei

OK, the problem is fixed.

Believe it or not, all I did was to change the password on the database to the one from the config.inc.php file.  I have no idea how the password got mucked up on the backend, but it happened to two galleries on my site.

Gremlins or the mysterious hacker who just changes your MySQL users passwords.

phill104

It is a mistake to think you can solve any major problems just with potatoes.