|
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]
|