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 myke1124, September 15, 2009, 08:49:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

myke1124

I deployed coppermine on a test site (http://test.johnmillerconstruction.com/gallery). It works fine...
However... When I moved to to the production side (http://johnmillerconstruction.com/gallery) I get:

QuoteCoppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'apache'@'localhost' (using password: NO)

I have checked include/config.inc.php.  It is the same on both test and production.  The user name in the config file is not apache and a password is specified.

For testing purposes I modified the error statement in include/init.inc.php to echo $CONFIG['dbserver'] $CONFIG['dbuser'] $CONFIG['dbpass'] $CONFIG['dbname'] in the error message to check if the software was picking up the variables from config.inc.php.  The variables were displayed correctly, so I reverted init.inc.php back to the original state.

What am I missing?

Joe Carver

If you are using the same versions on both sites, then you should first upgrade.
        <!--Coppermine Photo Gallery 1.4.19 (stable)-->
Is old and vulnerable to hacking......

If you are indeed using the same folder relative to your public html root, then double check what
you are setting on your webserver for redirect(s) etc.

You also might want to try another theme, just in case your modified theme is looking for something
on the subdomain and getting in the way of Coppermine.

phill104

Myke1124,

Once you have upgraded..... Search the forums as there are many answers you this question. Do not do that until you have upgraded.

i-imagine,

Viewing Mykes site at http://johnmillerconstruction.com/gallery/index.php?theme=classic might answer your question ;)
It is a mistake to think you can solve any major problems just with potatoes.

myke1124

Thanks,

I updated to 1.4.25. and it seams to have fixed the issue.

phill104

Myke1124,

Glad you got it solved. Keep an eye out for updates as it is important.

Also, could you mark your threads as solve by clicking the tick in the corner of your post? It makes it easier for others to find good answers
It is a mistake to think you can solve any major problems just with potatoes.