Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: [PEAR] Re: Problem setting up mdb2
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

Report this thread to moderator Post Follow-up to this message
Old Post
Mark Steudel
06-28-06 12:00 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:25 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.