[Solved]: coppermine critical error: unable to connect to database [Solved]: coppermine critical error: 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

[Solved]: coppermine critical error: unable to connect to database

Started by calendarcrabs, June 10, 2004, 03:10:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

calendarcrabs

Hi Everyone,

I installed Coppermine and all was going great until today.

Whenever I try to visit the gallery I get the following error:

..."coppermine critical error: unable to connect to database! MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) "

Any ideas what happened??

Vanessa

Joachim Müller

check the contents of your_coppermine_folder/include/config.inc.php if the mySQL connection settings are OK, maybe the file got corrupted somehow, or your webhost applied some changes. Does any other app that uses mySQL still work?

GauGau

calendarcrabs

Quote from: GauGau on June 10, 2004, 03:58:46 PM
check the contents of your_coppermine_folder/include/config.inc.php if the mySQL connection settings are OK, maybe the file got corrupted somehow, or your webhost applied some changes. Does any other app that uses mySQL still work?

GauGau

I have phpBB set up, but it is working fine. I don't know what happened. I guess it could be the webhost, but then it would have messed up the forum too, wouldn't it?

Joachim Müller

what does config.inc.php say (don't post it here - sensitive information!)? Did you check?

GauGau

calendarcrabs

Quote from: GauGau on June 10, 2004, 04:39:14 PM
what does config.inc.php say (don't post it here - sensitive information!)? Did you check?

GauGau

What am I looking for? I am new to php and sql :(


calendarcrabs

I was looking in the wrong config file  ::)

I went to the includes and checked the config file there and realised the problem

The host was locahost when it should have been my webhosting company's address

Thanks for the help!! It works now :)

:-*