title: Warning: mysql_connect(): Error while reading greeting packet
body: <pre><code>&lt;?php``
  if(mysql_connect("localhost","root",""))
  echo"connect";
  else 
  echo "not connect";
  ?&gt;
  </code></pre>
  
  <p>this is my code but it's not connected . give the error as warning</p>
  
  <p>Warning: mysql_connect(): MySQL server has gone away in C:..\pro1.php on line 2</p>
  
  <p>Warning: mysql_connect(): Error while reading greeting packet. PID=2296 in C:..\pro1.php on line 2</p>
  
  <p>Warning: mysql_connect(): MySQL server has gone away in C:..\pro1.php on line 2
  not connect</p>