Homepage connection prepared

12/23/2013 13:59 .Soυzα#1
Moin
Und zwar hab diesen Fehler wenn ich auf meine HP gehe.

Code:
Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 110 in /var/customers/webs/ni183496_1/hp1/index.php on line 15 Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 110 in /var/customers/webs/ni183496_1/hp1/index.php on line 16 Sorry, it could not connect to server be prepared.
Index.php (nur bis zeile 24!)
Code:
<?PHP

  if(!file_exists('./inc/config.inc.php'))
  {
    header('Location: install.php');
  }

  session_name("m2hp");
  session_start();
  
  require("./inc/config.inc.php");
  require("./inc/rights.inc.php");
  require("./inc/functions.inc.php");

  $sqlHp = mysql_connect(SQL_HP_HOST, SQL_HP_USER, SQL_HP_PASS);
  $sqlServ = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS);
  
  if(!is_resource($sqlServ) OR !is_resource($sqlHp)) {
    exit("Sorry, it could not connect to server
be prepared.");
  }
  require("./inc/head.inc.php");
  echo '<?xml version="1.0"?>';
?>
12/23/2013 14:03 MartPwnS#2
Deine Config Werte ohne Passwort währen Interessant, remote connect oder lokal ?
Wenn du lokal verbindest benutze doch mal localhost oder 127.0.0.1.
12/23/2013 14:09 .Soυzα#3
da bitte sehr. Ganz normal verbunden halt. wie ich es immer mache.

Jetzt kommt das hier

[Only registered and activated users can see links. Click Here To Register...]
12/23/2013 14:34 MartPwnS#4
Da kann ich dir nicht helfen, es fehlen die logs zu dem 500er da du ja anscheinend einen webspace gekauft hast...

Deutet auf Skriptfehler hin, kannst du dich mit einem ganz normalen mysql_connect oder mysqli_connect Befehl verbinden?

Firewall am root falsch konfiguriert?
12/23/2013 14:36 .Soυzα#5
Wie meinst du das mit normalen mysql_connect? Ich kann mich mit der Db verbinden Server connecten server ist on.
Firewall nicht wirklich.

Webpace ist von nitrado
12/23/2013 14:41 MartPwnS#6
Einfach das hier in ne neue php Datei und mal schauen:

Quote:
$link = mysqli_connect("host","user","passw","database") or die("Error " . mysqli_error($link));
12/23/2013 14:47 .Soυzα#7
Hast du vielleicht Skype?
12/23/2013 15:27 Coniesan#8
PN mich mal in Skype, kann ja mal via TV drüber gucken!