RE: [PEAR] Re: Problem setting up mdb2

From: Date: Tue, 27 Jun 2006 23:04:43 +0000
Subject: RE: [PEAR] Re: Problem setting up mdb2
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24495@lists.php.net to get a copy of this message
Ahhh thanks that was it. -----Original Message----- From: Lukas Smith [mailto:lsmith@php.net] Sent: Tuesday, June 27, 2006 2:52 PM To: pear-general@lists.php.net Subject: [PEAR] Re: Problem setting up mdb2 Mark Steudel wrote: > I'm trying to setup mdb2 for the first time and am getting the following > error: > > MDB2 Error: not found > > Here's the code setting it up. > > require 'MDB2.php'; > > $dsn = array( > 'phptype' => 'mysql', > 'username' => DB_USER, > 'password' => DB_PASS, > 'hostspec' => 'localhost', > 'database' => DB_NAME, > ); > > $db =& MDB2::connect($dsn); > > if (PEAR::isError($db)) { > die($db->getMessage()); > } die($db->getMessage().' - '.$db->getUserinfo()); that would tell you that you probably did not install the mysql driver: pear install MDB2_Driver_mysql regards, Lukas -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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