Page 1 of 1

MySQL database DEACTIVATED

PostPosted: 23. April 2005 01:40
by sckoh
Referring to the below Source Code at XAMPP Status(or, htdocs/xampp/status.php), my localhost always shows MySQL database DEACTIVATED when Mysql operation is quite normal.
What is the problem in this case, please?
Code: Select all
<html>
<head>
<meta name="author" content="Kai Oswald Seidler, Kay Vogelgesang">
<link href="xampp.css" rel="stylesheet" type="text/css">
</head>

<body>
<? include("lang/".file_get_contents("lang.tmp").".php"); ?>
 <p>

<h1><?=$TEXT['status-head']?></h1>

<?=$TEXT['status-text1']?><p>

<?php
   
   $curdir = getcwd();
   list ($partwampp, $directorwampp) = spliti ('\\\htdocs\\\xampp', $curdir);


   $i=0;

   $up="";

       if($GLOBALS['SERVER_PORT']==443)
                $prot="https";
        else
                $prot="http";

   if($PHP_AUTH_USER)
      $up="$PHP_AUTH_USER:$PHP_AUTH_PW@";
   $b="$prot://$up".$GLOBALS['SERVER_NAME'];
   if($GLOBALS['SERVER_PORT']!=80)
   {
      $b="$prot://$up".$GLOBALS['SERVER_NAME'].".:".$GLOBALS['SERVER_PORT'];
   }
   function line($text,$status,$link="")
   {
      global $i,$TEXT;

      if($i>0)
      {
         echo "<tr valign=bottom>";
         echo "<td bgcolor=#ffffff background='img/strichel.gif' colspan=5><img src=img/blank.gif width=1 height=1></td>";
         echo "</tr>";
      }
      echo "<tr bgcolor=#ffffff>";
      echo "<td bgcolor=#ffffff><img src=img/blank.gif width=1 height=20></td>";
      echo "<td class=tabval>";
      echo "$text";
      echo "</td>";
      if(trim($status)=="OK"){
         echo "<td><span class=green> ".$TEXT['status-ok']." </span></td>";
         echo "<td></td>";
         $i++;
       }
      else
      {
         echo "<td><span class=red> ".$TEXT['status-nok']." </span></td>";
         if($link=="")
            echo "<td></td>";
         else
            echo "<td><a target=faq href='$link'><span style='font-size: 10pt'>".$TEXT['status-lookfaq']."</span></a></td>";
      }
      echo "<td bgcolor=#ffffff><img src=img/blank.gif width=1 height=1></td>";
      echo "</tr>";
      $i++;
   }


   $a=@file("$b/xampp/php.php");
   $php=$a[0];
   $a=@file("$b/xampp/mysql.php");
   $mysql=$a[0];
   $a=@file("$b/cgi-bin/cgi.cgi");
   $cgi=$a[0];
   $a=@file("$b/xampp/ssi.shtml");
   $ssi=$a[0];
   
===== ======= ===== ===
===== ======= ===== ===
   echo "<td bgcolor=#fb7922 valign=top><br><img src=img/blank.gif width=1 height=10></td>";
   echo "</tr>";
   line($TEXT['status-mysql'],$mysql);
   line($TEXT['status-php'],$php);
   line($TEXT['status-ssl'],$ssl);
----- ----- ----- -----
----- -------- ----- ------
?>
<?=$TEXT['status-text2']?><p>

<? if ($source=="in")
      { include("code.php"); $beispiel = $SCRIPT_FILENAME; pagecode($beispiel);}
      else
      { print("<p><br><br><h2><U><a href="$PHP_SELF?source=in">".$TEXT['srccode-in']."</a></U></h2>");} ?>
</body>
</html>

PostPosted: 27. April 2005 13:53
by prathapml
Try refreshing the status page.
Maybe it was initially opened back when mysql service was off, and now is being displayed from cache.

PostPosted: 28. April 2005 10:34
by sckoh
No, it doesn't affect on the bugy signal and it remains unchanged, even though I cleaned cookies, files and all the past records.