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 Jerry Stuckle on 04/26/06 16:07

janvdberg@gmail.com wrote:
> Hi Erwin,
>
> thanks for the reply. I have about 2500 user websites running with all
> kinds of scripts.
> To migrate I really would need localhost to become something like
> mysql.host.com using a network socket: because changing the connection
> string (if even possible) would mean altering a user website which
> would cause it not to work anymore on the current server and this
> wouldnt allow for a seemless migration.
> I dont see a problem with changing the localhost meaning just for PHP.
> So Im guessing that this is probably something that I should hack into
> the source?
>
> Jan
>

Jan,

I feel your pain. But as others have said, it is NOT a good idea. What about
those sites which use localhost for something other than mysql, also? If you
changed localhost, all that would break, also.

localhost is meant to be specifically the local machine - that's what it's there
for. And you really need to leave it that way.

I agree with Erwin - talk to your webmasters. And no migration like your doing
is "seamless".

I also agree with Colin - this is WAY off topic and has nothing to do with PHP.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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