I am trying to install phpBugTracker on our web server. When I try to check the database connection on the installation screen, I get an error screen that reads "DB testing error ... DB error: extension not found". The error is called from the following function:
function test_database(&$params, $testonly = false) {
define('PEAR_PATH', '');
if (!@include_once(PEAR_PATH.'DB.php')) {
$error_message = translate("Failed loading Pear:DB");
$error_info = translate("Please check your Pear installation and the defined PEAR_PATH in install.php");
$error_info .= " <a href='http://pear.php.net/'>http://pear.php.net/</a>";
include('templates/default/install-dbfailure.html');
exit;
}
$dsn = array(
'phptype' => $params['db_type'],
'hostspec' => $params['db_host'],
'database' => $params['db_database'],
'username' => $params['db_user'],
'password' => $params['db_pass']
);
$db = DB::Connect($dsn);
if (DB::isError($db)) {
$error_message = isset($db->message) ? $db->message : '';
$error_info = isset($db->user_info) ? $db->user_info : '';
include('templates/default/install-dbfailure.html');
exit;
} else {
if ($testonly) {
include('templates/default/install-dbsuccess.html');
exit;
} else {
return $db;
}
}
}
I am using MySQL version 5.0.45, PHP version 4.47, and I have a stable version of PEAR :: DB version 1.7.6. I have already verified that I can connect to the database that I am using with the name that I created otherwise. I am at the mercy of my hosting company regarding which modules are installed.
Any ideas on what might cause the error?
: db_type "mysqli". "mysql" , "connection failed".