coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: calendarcrabs on June 10, 2004, 03:10:17 PM

Title: [Solved]: coppermine critical error: unable to connect to database
Post by: calendarcrabs on June 10, 2004, 03:10:17 PM
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
Title: Re: coppermine critical error: unable to connect to database
Post by: Joachim Müller 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
Title: Re: coppermine critical error: unable to connect to database
Post by: calendarcrabs on June 10, 2004, 04:26:52 PM
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?
Title: Re: coppermine critical error: unable to connect to database
Post by: Joachim Müller 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
Title: Re: coppermine critical error: unable to connect to database
Post by: calendarcrabs on June 10, 2004, 06:40:28 PM
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 :(

Title: Re: coppermine critical error: unable to connect to database
Post by: calendarcrabs on June 10, 2004, 07:41:42 PM
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 :)

:-*