coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: voodoo192 on October 17, 2005, 10:52:29 PM

Title: Changing localhost to new IP
Post by: voodoo192 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
Title: Re: Changing localhost to new IP
Post by: artistsinhawaii 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
Title: Re: Changing localhost to new IP
Post by: Joachim Müller on October 17, 2005, 11:09:18 PM
that's correct.