title: MySQL server at 'reading initial communication packet', system error: 111
body: <p>I moved my site to <strong>godaddy server</strong>, but the SQL connection is not working even with adequate changes which was working perfectly fine before</p>
  
  <pre><code>&lt;?php
  $link = mysql_connect('www.xxxxx.com', 'phpadminusername', 'phpadminpasswor');
  if (!$link) {
      die('Could not connect: ' . mysql_error());
  }
  /*echo 'Connected successfully';*/
  echo "DB CONNECTION :&lt;font color='green'&gt;ACTIVE&lt;/font&gt;";
  
  
  ?&gt;
  </code></pre>
  
  <p>It is showing an error </p>
  
  <blockquote>
    <p>Warning: mysql_connect() [function.mysql-connect]: Lost connection to
    MySQL server at 'reading initial communication packet', system error:
    111 in /home/content/58/9508458/html/psychiatric/private.php on line
    196 Could not connect: Lost connection to MySQL server at 'reading
    initial communication packet', system error: 111</p>
  </blockquote>