forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Rishiuu on December 19, 2005, 03:03:23 am

Title: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
Post by: Rishiuu on December 19, 2005, 03:03:23 am
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! :(
Title: Re: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
Post by: artistsinhawaii on December 19, 2005, 03:51:31 am
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
Title: Re: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
Post by: Rishiuu on December 19, 2005, 08:43:04 am
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 (http://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 (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_';
?>
Title: Re: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
Post by: Rishiuu on December 19, 2005, 12:53:34 pm
ei ;) Now it runs xDDDDDDDd I din't do anythig xD

THANK YOU ;)
Title: Re: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
Post by: Tranz on December 19, 2005, 05:02:52 pm
Then it was something with your webhost.