Connect the Mysql Database from local client Computer

Create the New privilege for the Client computer name as the host name.
Then try the following sample code into your client computer,
It will be work exactly.

Sample PHP Code :
$con=mysql_connect('IP Address','root','') or die("Database Connection Failed
". mysql_error());
mysql_select_db('',$con);
$test_query=mysql_query('SELECT * FROM

'); while($row=mysql_fetch_array($test_query)) { echo $row[column].' '; } ?>

No comments:

Post a Comment