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: Changing localhost to new IP  (Read 3126 times)

0 Members and 1 Guest are viewing this topic.

voodoo192

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Changing localhost to new IP
« on: October 17, 2005, 10:52:29 pm »

Coppermine has been up and running on my server for several months now without a problem for several months.

Last week the site stopped working, instead I would get this message.


Coppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)



I have spoken with my host and they tell the problem is i am trying to connect via local host and should use a differnet IP which they have given me (changing this worked on another site i have).

So how do I change the setup of coppermine to connect to the DB using this new IP. Do I need to edit individual files, if so which ones, or is there a simpler way to so this.


Thank you for any support you can offer

Matt
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Changing localhost to new IP
« Reply #1 on: October 17, 2005, 10:55:08 pm »

I believe you have to edit your config.inc.php file in the coppermine/include folder

Look for :
Quote
$CONFIG['dbserver'] =                         'localhost';

and change 'localhost' to your new settings.

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Changing localhost to new IP
« Reply #2 on: October 17, 2005, 11:09:18 pm »

that's correct.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.