Re: php-CLI

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

 



Hi
   
  Probably you need to give the right permisions for that connections into mysql. 
   
  That's mean you need to create an instance on mysql that allowed that ip to do somenthing on the database. 
   
  

SaEeDoS <saeedos@xxxxxxxxx> escribió:
          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



                         


Danitzel Jurado 
   
  celular: 6727-0315

       
---------------------------------

¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.espanol.yahoo.com/

[Non-text portions of this message have been removed]


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

  Powered by Linux