}
print "<li>Database type: {$conf->DBtype}</li>\n";
$dbclass = 'Database'.ucfirst($conf->DBtype);
- require_once("$dbclass.php");
$wgDBtype = $conf->DBtype;
$wgDBadminuser = "root";
$wgDBadminpassword = $conf->RootPW;
$wgDBadminpassword = $db_pass;
echo( "success.</li>\n" );
$wgDatabase->ignoreErrors( true );
- $myver = mysql_get_server_info( $wgDatabase->mConn );
+ $myver = $wgDatabase->getServerVersion();
} else {
# There were errors, report them and back out
$ok = false;
}
print "</li>\n";
- @$sel = mysql_select_db( $wgDBname, $wgDatabase->mConn );
+ @$sel = $wgDatabase->selectDB( $wgDBname );
if( $sel ) {
print "<li>Database <tt>" . htmlspecialchars( $wgDBname ) . "</tt> exists</li>\n";
} else {
return false;
}
-function get_db_version() {
- global $wgDatabase, $conf;
- if ($conf->DBtype == 'mysql')
- return mysql_get_server_info( $wgDatabase->mConn );
- else if ($conf->DBtype == 'oracle')
- return oci_server_version($wgDatabase->mConn);
- else return 'unknown';
-}
-
# Test a memcached server
function testMemcachedServer( $server ) {
$hostport = explode(":", $server);
'WordLevelDiff' => 'DifferenceEngine.php',
'TableDiffFormatter' => 'DifferenceEngine.php',
'EditPage' => 'EditPage.php',
+ 'MWException' => 'Exception.php',
'Exif' => 'Exif.php',
'FormatExif' => 'Exif.php',
'WikiExporter' => 'Export.php',