php-CLI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all .
i write a php script , and i want to connect to another pc in the same
network that have a mysql database .
i use mysql_connect function .
<?php
$DB_name = "wfdb";
$He = "192.168.1.68";  // the ip of the pc that have mysql 
$Ue = "emp";
$Pe = "pass1";
$connect = mysql_connect($He, $Ue, $Pe) or die('Connection ERROR');
$select = mysql_select_db($DB_name, $connect) or die('Selection
database error')
?>
when i run the script i have this massege :
mysql_connect() : HOST 'saeed-980XXXX ' is not allowe to connect to
this MySQL server .
what should i do ?? 
is there any setting that i must put it in mysql ? please tell me 

thanks


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux