|
Posted by Colin McKinnon on 04/26/06 13:40
janvdberg@gmail.com wrote:
> i have an old webserver where users let their script connect to
> localhost for mysql queries. I have a new mysql server where I want to
> put all the user databases. So Im looking for a way to make PHP
> interpretet 'localhost' as a network socket and connect to
> 'mysql.host.com'.
> Is there an easy way to do this; this would really help me migrate the
> user databases.
>
Hi Jan,
Really this way OT - nothing to do with PHP.
Since this is very OS specific, it would really have been helpful to know
what you have on the webserver. There are userspace tools which will run on
most flavours of Unix, including Linux, (I've found tcpxd reliable but try
google for others). If you *are* running Linux, or BSD I believe it's
possible to forward ports using iptables or pf.
If you are using Microsoft...well, good luck.
HTH
C.
[Back to original message]
|