Re: Problem setting up mdb2
| From: | Lukas Smith | Date: | Tue, 27 Jun 2006 21:51:34 +0000 |
| Subject: | Re: Problem setting up mdb2 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24494@lists.php.net to get a copy of this message | ||
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',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'username' => DB_USER,'password' => DB_PASS, 'hostspec' => 'localhost','database' => DB_NAME,); $db =& MDB2::connect($dsn); if (PEAR::isError($db)) {die($db->getMessage());}