title: mysql_connect error
body: <p>In the following code I see <code>echo1</code> statement, after which I do not see anything printed on the UI.The username and password is correct. But PHP doesn't seem to connect to MySQL. Don't even see the die statement what am I doing wrong. After <code>mysql_connect</code> is encountered the rest of the code doesn't work:</p>
  
  <pre><code>&lt;?php    
  echo "echo1==========";
  $con = mysql_connect("localhost","root", "xxxx123") or die("Error connecting to database");
  echo "+++++++++ echo2";
  echo $con;
  mysql_close($con);
    ?&gt;          
  </code></pre>