Advanced search  

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

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.

andyschlei

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Posts: 9
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
  • Country: us
  • Offline Offline
  • Posts: 9
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
  • Country: us
  • Offline Offline
  • Posts: 9
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
  • Country: us
  • Offline Offline
  • Posts: 9
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
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • 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.016 seconds with 19 queries.