RE: [PEAR] MDB vs DB connect

From: Date: Sat, 30 Aug 2003 15:59:39 +0000
Subject: RE: [PEAR] MDB vs DB connect
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7501@lists.php.net to get a copy of this message
> From: Lukas Smith [mailto:smith@backendmedia.com] > Sent: Saturday, August 30, 2003 3:26 PM > > From: Jackson Miller [mailto:jackson@coldfeetcreative.com] > > Sent: Friday, August 29, 2003 8:01 PM > > > I can successfully connect via DB using the following code: > > > > $cbDSN = "mysql://me:mypass@unix(:/tmp/mysql.sock)/dbname"; > > $cbDB = DB::connect("$cbDSN"); > > if (DB::isError($cbDB)) { > > die ($cbDB->getMessage()); > > } > > > > > > But when I try this with MDB all I get is "MDB Error: connect failed" > > $cbDSN = "mysql://me:mypass@unix(:/tmp/mysql.sock)/dbname"; > > $cbDB=&MDB::connect($cbDSN); > > if (MDB::isError($cbDB)) { > > die ($cbDB->getMessage()); > > } > > > > I have tried removing the semi-colon from the socket path. > > I have tried with and without the ampersand on on line 2. > > I have tried all combinations of the above. > > > > I know the DSN info is good and I think the DSN format is good. I > have > > the > > latest version of MDB. > > > > What am I doing wrong? > > It seems that DB is more advanced here. > I will see that I get this added. > > I am now mostly done with MDB 2.x. > And I plan to make a new MDB 1.x release some time in the next 4 weeks, > since there are quite a number of bug fixes that need to be back ported > too. OK, it seems that this functionality will not make it into MDB 1.x, but it will be in MDB 2.x pretty soon. Again a first release of MDB 2.x is eminent. Regards, Lukas

« previous php.pear.general (#7501) next »