Changing localhost to new IP Changing localhost to new IP
 

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

Changing localhost to new IP

Started by voodoo192, October 17, 2005, 10:52:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

voodoo192

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

artistsinhawaii

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
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