You are here: Re: Make localhost (file socket) -> mysql.host.com (network socket) « PHP Programming Language « IT news, forums, messages
Re: Make localhost (file socket) -> mysql.host.com (network socket)

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация