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

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]

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 2 Guests 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 :)

:-*