title: My site takes 10 minutes to load
body: <p>My Web site takes a long time to load and am presented with the following errors:</p>
  
  <pre><code>Warning: mysql_connect(): MySQL server has gone away in C:\xampp\htdocs\test\inc\scripts\mysql_connect.inc.php on line 9
  
  Warning: mysql_connect(): Error while reading greeting packet. PID=2256 in C:\xampp\htdocs\test\inc\scripts\mysql_connect.inc.php on line 9
  
  Warning: mysql_connect(): MySQL server has gone away in C:\xampp\htdocs\test\inc\scripts\mysql_connect.inc.php on line 9
  
  Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\test\inc\scripts\mysql_connect.inc.php on line 9
  </code></pre>
  
  <p><strong>The code I am using:</strong></p>
  
  <pre><code>&lt;?php
  $conn_error = 'Colud not connect.';
  
  $mysql_host = "localhost:8080";
  $mysql_user = "Harry";
  $mysql_pass = "";
  
  $mysql_db = 'testsite' ;
  mysql_connect($mysql_host, $mysql_user, $mysql_pass) or die("Couldn't Connect") ;
  mysql_select_db($mysql_db) or die($conn_error);
  
  echo 'Connected!' ;
  
  ?&gt;
  </code></pre>
  
  <p>Any idea why this is happening?</p>