Re: [PHP-DB] MySQL - separating web and database servers

2004-03-19 Thread Operator
On 19 Mar 2004 at 9:53, Matthew Vos wrote: > Hi Piotr, > > Everyone else is suggesting edit all of the code. > Alternatively you could setup an iptables rule which forwards all > incoming requests on 127.0.0.1:3306 (or whatever port your mysql server > is running on) to 192.168.0.1:3306 (repolace

Re: [PHP-DB] MySQL - separating web and database servers

2004-03-18 Thread Operator
On 18 Mar 2004 at 14:24, Ricardo Lopes wrote: > in your php.ini you have mysql.default_host, mysql.default_user and > mysql.default_password which are used if: > > a) you are not in safe mode > b) you supply no string for those parameters. > > But i guess this is not your case, i think this does

Re: [PHP-DB] MySQL - separating web and database servers

2004-03-18 Thread Operator
Tested before, doesn't work :( PB > > Beckman > > On Thu, 18 Mar 2004, Operator wrote: > > > Hi everyone, > > > > I need to put my database server on the another machine - how can I > > configure system(Debian Linux)/php/mysql etc. to make it wo

Re: [PHP-DB] MySQL - separating web and database servers

2004-03-18 Thread Operator
ile to make localhost point to the other > machine is a good practice. :) I agree. But it doesn't work anyway ;) PB > > ----- Original Message - > From: "Operator" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, March 18, 2

[PHP-DB] MySQL - separating web and database servers

2004-03-18 Thread Operator
Hi everyone, I need to put my database server on the another machine - how can I configure system(Debian Linux)/php/mysql etc. to make it work without changing all 'localhost' in a hundreds of customer's scripts? The problem is, when localhost is specified as a host the connection is made using