Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.  (Read 6007 times)

0 Members and 1 Guest are viewing this topic.

Rishiuu

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 8
  • Heavy metal!!
    • Nightwish Spain Fan Club

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! :(
« Last Edit: December 19, 2005, 05:07:26 pm by TranzNDance »
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
« Reply #1 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
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 8
  • Heavy metal!!
    • Nightwish Spain Fan Club
Re: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
« Reply #2 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 , 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_';
?>
« Last Edit: December 19, 2005, 08:53:02 am by Rishiuu »
Logged

Rishiuu

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 8
  • Heavy metal!!
    • Nightwish Spain Fan Club
Re: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
« Reply #3 on: December 19, 2005, 12:53:34 pm »

ei ;) Now it runs xDDDDDDDd I din't do anythig xD

THANK YOU ;)

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Can't connect to MySQL server on 'db.host.sk' - This morning it worked.
« Reply #4 on: December 19, 2005, 05:02:52 pm »

Then it was something with your webhost.
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 20 queries.