Re: connecting to a remote db?

From: Date: Thu, 13 Jun 2002 06:47:26 +0000
Subject: Re: connecting to a remote db?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-19781@lists.php.net to get a copy of this message
On Thursday 13 June 2002 14:23, Chris Payne wrote: > Hi there everyone, > > I have a secure server and another separate servr, both use PHP and > MySQL – however, I need to connect to a db off of the secure server, how > can I do this? I normally use localhost if it’s on the same machine, > but how can I connect the DB to a DB on my other machine as I cannot use > this particular DB on my secure server? Assuming you have the necessary access rights to the DB on the secure server then it just a simple matter of replacing 'localhost' with 'hostname.of.secureserver'. And of course if the username and password are different replace those as well. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The church is near but the road is icy; the bar is far away but I will walk carefully. -- Russian Proverb */

« previous php.db (#19781) next »