You are here: Re: How to use multiplce MySQL socket on a single web server? « PHP Programming Language « IT news, forums, messages
Re: How to use multiplce MySQL socket on a single web server?

Posted by Rik on 01/12/07 10:34

C. wrote:
> Rik wrote:
>> howa wrote:
>>> in the php.ini, i can't only config to use one mysql socket, but my
>>> applications require connection to ultiple local mysql server, using
>>> unix socket, listening different port
>>
>> $link1 = mysql_connect ( 'localhost:3306','user','pass');
>> $link2 = mysql_connect ( 'localhost:6000','user','pass');
>>
>
> These are NETWORK sockets not UNIX sockets.
>
> howa: RTFM dude - "3.0.10 Added support for ":/path/to/socket" with
> server "

Well, it was just an illustration that your default mysql settings in the
ini file have nothing to do with the actual connections you create. The
link I posted also explains how that works with UNIX sockets.
--
Rik Wasmus

 

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

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