|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
pear install MDB2_Driver_mysql
The DBMS specific drivers were unbundled a long time ago from the MDB2 package. |
|
#3
|
|||
|
|||
|
Quote:
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. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Where has MDB2/Drivers/mysql.php gone? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|