Remote Mysql Server connection by PHP
<p>While i execute following code:</p>

<pre><code>$db_host = "&lt;IP&gt;";  // Host name
$db_user = "&lt;usr&gt;";  // User name of your database
$db_password = "&lt;pass&gt;";     // Password of your database
$db_name="&lt;db name&gt;";   // Database name

$con = mysql_connect($db_host,$db_user,$db_password);
mysql_select_db($db_name) or die("Cannot select database...");
</code></pre>

<p>It shows following errors:</p>

<p><strong>Warning</strong>: mysql_connect() [function.mysql-connect]: OK packet 6 bytes shorter than expected in C:\wamp\www\limosbusesjets\connection.php on line 21</p>

<p><strong>Warning</strong>: mysql_connect() [function.mysql-connect]: mysqlnd cannot connect to MySQL 4.1+ using old authentication in C:\wamp\www\limosbusesjets\connection.php on line 21
    Cannot select database...</p>
