Changing localhost to new IP Changing localhost to new IP
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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