PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 29th, 2008, 02:55 AM
yrefdoggy yrefdoggy is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 2 yrefdoggy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 52 sec
Reputation Power: 0
Where has MDB2/Drivers/mysql.php gone?

I've installed XAMPP on an XP box, complete with PEAR. It seems to run fine and find PEAR OK.

However, when trying to run some legacy code which needs a mysql database connection, I am getting this error message:
"unable to find package 'MDB2' file 'MDB2/Drivers/mysql.php'

This is the code snippet from within MDB2.php that is throwing the error:

if (!class_exists($class_name)) {
$file_name = str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php';
if (is_array($options) && array_key_exists('debug', $options) && $options['debug']) {
$include = include_once($file_name);
} else {
$include = @include_once($file_name);
}
if (!$include) {
if (!MDB2::fileExists($file_name)) {
$msg = "unable to find package '$class_name' file '$file_name'";
} else {
$msg = "unable to load driver class '$class_name' from file '$file_name'";
}
$err =& MDB2::raiseError(MDB2_ERROR_NOT_FOUND, null, null, $msg);
return $err;
}
}

So, I went and had a look, and, sure enough, there IS NO file at xampp/php/pear/MDB2/Drivers/mysql.php - no file there at all.

There IS a file at xampp/php/pear/MDB/Drivers/mysql.php

Can anyone tell me why this file isn't there? Or why MDB2 is trying to include a non-existent file?

Thanks in advance

Reply With Quote
  #2  
Old January 29th, 2008, 03:36 AM
wiesemann wiesemann is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 146 wiesemann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 39 m 31 sec
Reputation Power: 2
pear install MDB2_Driver_mysql

The DBMS specific drivers were unbundled a long time ago from the MDB2 package.

Reply With Quote
  #3  
Old January 30th, 2008, 02:36 PM
yrefdoggy yrefdoggy is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 2 yrefdoggy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 52 sec
Reputation Power: 0
Quote:
Originally Posted by wiesemann
pear install MDB2_Driver_mysql

The DBMS specific drivers were unbundled a long time ago from the MDB2 package.


Thanks, sorry it took a while to get back. This helped me fix the problem. I actually had to add a couple of options to the install command to get dependencies too. I also ran into trouble because the very latest XAMPP ships with what appears to be a bug in PEAR MDB2 - there is a function MDB2::_getDatabaseCapabilities (or something similar to that)which is missing!

pear upgrade-all + a few options fixed that. Sorry, I have a brain like a sieve when it comes to remembering options that I used.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > Where has MDB2/Drivers/mysql.php gone?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway