Unable to connect to database ! Unable to connect to database !
 

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

Main Menu

Unable to connect to database !

Started by Aurel Klatik, June 11, 2025, 10:03:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Aurel Klatik

I have successfully updated from CPG 1.5.12 to 1.5.48 using PHP 5.3
In attempt to upgrade to CPG 1.6.26 I have uploaded files to server, changed server setting to PHP 8.3 and run webname/update.php
I was still logged in as webstie admin.  Got this error:

Coppermine critical error:
Unable to connect to database !

MySQLi said: 2054 : The server requested authentication method unknown to the client [mysql_old_password]

Have checked that MySQL is 5.5
I have no clue what to do. Can you please give me a hint ?

phill104

Take a look at your include/config.inc.php file and check all the setings are correctly pointing to your database. Once you have verified they are correct remember to run update.php as per the docs

https://coppermine-gallery.com/docs/curr/en/upgrading.htm

QuoteTo run the PHP-file "update.php" (i.e. the update script), just enter the URL into the address bar of your browser. The file "update.php" resides in the Coppermine directory, so to run it you will need to point your browser to http://yourdomain.tld/your_coppermine_folder/update.php (if you have installed Coppermine into the root of your web site, you will have to run http://yourdomain.tld/update.php accordingly). This will update your Coppermine install by making all necessary changes in the database.



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