Can't connect to MySQL server on 'db.host.sk' - This morning it worked. Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
 

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

Can't connect to MySQL server on 'db.host.sk' - This morning it worked.

Started by Rishiuu, December 19, 2005, 03:03:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rishiuu

Hello! ;)

I installed the Coppermine Gallery in its last version this week. 

I have upload photos and it worked.  This afternoon I have entered to the web and it said the following thing:


Coppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to MySQL server on 'db.host.sk' (4)


PLEASE HELP ME! :(

artistsinhawaii

First, I'd check config.inc.php in the include folder to see if all the settings are correct.
If so, try again.  If you are still having problems, check with your webhost, they may be updating, or experiencing problems.  Also check your database, that it still exists.

If not, post a link to your site.

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.

Rishiuu

I have that to say that when I download the new one version, the file config. inc. php not exist, but config.inc.php.sample yes.
I installed the gallery at the start of Fpt (sorry I'm spanish, I don´t know how is called in english ;) ) and it worked i upload more than 100 pics.

My surprise was now, when I had the problem, the file config. inc. php exists and it is OK and it have the SAFE MODE code too!! hehehe  ???  ::) It is rare, I did not place him hehhee

When I'm going to replace it or change properties on SmartFtp says: config.inc.php: Operation not permitted

In properties it says: User: (?) Group: Audio  ?¿?¿?¿?¿? In the rest of archives say: User: ttspaingallery Group: users

In www.host.sk , you create your own database with your name, password... and i can enter enter on it with a control panel , It exists

???  :-\

I don't kwnow :(

MY WEB: http://ttspaingallery.host.sk


config.inc.php CODE:

<?php
// Coppermine configuration file
// Silly safe mode
define('SILLY_SAFE_MODE', 1);


// MySQL configuration
$CONFIG['dbserver'] =                         'db.host.sk';        // Your database server
$CONFIG['dbuser'] =                         '*****';        // Your mysql username
$CONFIG['dbpass'] =                         '*****';                // Your mysql password
$CONFIG['dbname'] =                         '*****';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg140_';
?>


AT config.inc.php.sample says:

<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your databaseserver
$CONFIG['dbuser'] =                         'root';        // Your mysql username
$CONFIG['dbpass'] =                         '';                // Your mysql password
$CONFIG['dbname'] =                         'coppermine';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg132_';
?>

Rishiuu


Tranz