Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Unable to Connect to Database  (Read 115 times)

0 Members and 1 Guest are viewing this topic.

andyschlei

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Unable to Connect to Database
« on: May 14, 2022, 11:00:02 pm »

Sometime in the last couple of weeks, my Coppermine gallery stopped working.  I get the following error message, which unfortunately doesn't help much:
Quote
Coppermine 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!
Logged

andyschlei

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Unable to Connect to Database
« Reply #1 on: May 14, 2022, 11:01:56 pm »

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

andyschlei

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Unable to Connect to Database
« Reply #2 on: May 15, 2022, 12:54:29 am »

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

andyschlei

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Unable to Connect to Database
« Reply #3 on: May 15, 2022, 01:01:30 am »

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

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Online Online
  • Gender: Male
  • Posts: 4841
    • Windsurf.me
Re: Unable to Connect to Database
« Reply #4 on: May 15, 2022, 10:11:52 am »

Glad you got it fixed.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.