Re: [DB mysql]Multiple connection (bug 13232)
| From: | Markus Fischer | Date: | Mon, 31 Dec 2001 14:23:37 +0000 |
| Subject: | Re: [DB mysql]Multiple connection (bug 13232) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-3741@lists.php.net to get a copy of this message | ||
On Mon, Dec 31, 2001 at 11:33:10AM +0100, Pierre-Alain Joye wrote :
> Sorry Tomas, I believe the bug 13232 is not fixed.
>
> Currently use mysql 3.23.26, php 4.1.0 && 4.1.1, yesterday
> 12/30/2001 17:00 cvs.
>
> You will find as attachment a little script (I just changed as
> usual host, table names... as usual :) ).
>
> The multiple connection work only if you have different user,
> but not with only different DB. Seems to work with a different
> host.
>
> I dont know if it's a pear problem ( imho, the october patch
> have to work... ) or mysql client lib.
It's a limitation of most databasebase API's in PHP (read:
its a PHP problem). In current CVS there's an optional
parameter to mysql_connect() which allows you force the
creation of new database links even if you use the same
host/user/pass twice, for example:
mysql_connect('host', 'user', 'pass', true);
- Markus
--
Please always Cc to me when replying to me on the lists.