Jump to content

Connection Errors.. " Lost connection to MySQL server "


monkeypaw201

Recommended Posts

I am trying to connect externally to my MySQL database, i have whitelisted % and my domain.

 

 

when i try to connect i use this:

 

<?php
$con = mysql_connect("laiello.freesitespace.net","user","pass");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("laiello_weather", $con);

$result = mysql_query("SELECT * FROM weather WHERE  icao = '$_GET[icao]'");

$row = mysql_fetch_array($result)
?>

and get this error:

 

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query in page.php on line 33

 

i have checked the usernames, passwords, privileges and hostnames... Any suggestions?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.