RE: [PEAR-DEV] Having two windows to connect to the same DB

From: Date: Thu, 21 Mar 2002 09:58:44 +0000
Subject: RE: [PEAR-DEV] Having two windows to connect to the same DB
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5067@lists.php.net to get a copy of this message
Found it, problem was hidden deep within a class, was a design flaw ... Sorry about that ... > > ----- Original Message ----- > From: "LIMBOURG Arnaud" <arnaud.limbourg@cegetel.fr> > To: "PEAR DEV" <pear-dev@lists.php.net> > Sent: Wednesday, March 20, 2002 7:54 PM > Subject: [PEAR-DEV] Having two windows to connect to the same DB > > > > Hello, > > > > We ran into a problem concerning database connections. > > > > I'm pretty sure somebody has encountered this problem > before. We're using > > PEAR DB, but i think it isn't related to pear db. > Me too ;). > > > What the application is trying to achieve is this: > > - on load event some javascript is fired which opens a new navigator > > window > > - this window uses the same sessionid (which is what it is supposed > > to do) > Nothing to do with your connection, as far as you initialized > a new db every > connection, understand you don t try to store db object in session. > > - the code in both window is the same, that is, $db = > > DB::connect($dsn); > OK. > Please provide the full dsn description, > > > Now the problem is that the first window works well but on > the second > window > > the following error shows up DB Error: connect failed > [nativecode=MySQL > > Connection Failed: Unknown MySQL Server Host 'xxxxx' (2) ] > the 1st idea s coming is a host resolv problem. Did you try > to connect to > the host with the command line tool ? > > > I guess it has something to do with threads or something > but i'm new to > > linux and don't get it. > I do not think threads has anything to do with your problem, chtit ;). > > hth > > pa > > ps: Je crois que la soiree va tomber a l eau.... >

« previous php.pear.dev (#5067) next »