Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.