Re: connecting remote host ..

From: Date: Mon, 14 Jun 2004 07:32:50 +0000
Subject: Re: connecting remote host ..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188197@lists.php.net to get a copy of this message
Hi Gowthaman, For mysql to allow remove connecivity u have to make entry in mysql database in tables db, user and host giving the IP of remote PC from which u want to connect and username and password then reload the database and It will all work Manoj On 14 Jun 2004 10:25:48 +0530, gowthaman ramasamy <gowtham@icgeb.res.in> wrote: > > hello list, > My php script works fine with local mysql database. > however when try to use some remote database it fails and gives follwing > error .. > > Warning: mysql_connect(): Unknown MySQL Server Host 'http' (2) in > /usr/local/apache2/htdocs/gowtham/forphp/db_qry_4repeat.php on line 86 > > the mysql_connect() syntax is as follows .. > $db=mysql_connect("192.168.1.109", "root", "password"); > 192.168.1.109 is the ip (internal IP on LAN) of the machine hosting the > database. > > thanx a lot in advance .. > > -- > Ra. Gowthaman, > Graduate Student, > Bioinformatics Lab, > Malaria Research Group, > ICGEB , New Delhi. > INDIA > > Phone: 91-9811261804 > 91-11-26173184; 91-11-26189360 #extn 314 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#188197) next »