Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: coppermine critical error: unable to connect to database  (Read 4969 times)

0 Members and 1 Guest are viewing this topic.

calendarcrabs

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

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
« Last Edit: June 10, 2004, 11:16:49 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: coppermine critical error: unable to connect to database
« Reply #1 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
Logged

calendarcrabs

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: coppermine critical error: unable to connect to database
« Reply #2 on: June 10, 2004, 04:26:52 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: coppermine critical error: unable to connect to database
« Reply #3 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
Logged

calendarcrabs

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: coppermine critical error: unable to connect to database
« Reply #4 on: June 10, 2004, 06:40:28 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 :(

Logged

calendarcrabs

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: coppermine critical error: unable to connect to database
« Reply #5 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 :)

 :-*
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 18 queries.