title: Lost connection to MySQL server at 'reading initial communication packet', system error: 0
body: <p>I am getting error:</p>
  
  <blockquote>
    <p>"Lost connection to MySQL server at 'reading initial communication packet, system error: 0"</p>
  </blockquote>
  
  <p>while I am going to connect my db.</p>
  
  <p>If I am using localhost everything is working fine.
  But when I am using my live IP address like below, it's getting error:</p>
  
  <pre><code>mysql_connect("202.131.xxx.106:xxxx", "xxxx", "xxxxx") or die(mysql_error());
  </code></pre>