if( !$ok ) { continue; }
}
else if ( $conf->DBtype == 'mssql' ) {
- error_reporting( E_ALL );
- $wgSuperUser = '';
- # # Possible connect as a superuser
+ # Possible connect as a superuser
if ( $useRoot ) {
- $wgDBsuperuser = $conf->RootUser;
- echo( "<li>Attempting to connect to database \"{$conf->DBtype}\" as superuser \"{$wgDBsuperuser}\"" );
+ echo( "<li>Attempting to connect to database \"{$conf->DBtype}\" as superuser \"{$conf->RootUser}\"" );
$wgDatabase = $dbc->newFromParams(
$conf->DBserver,
$conf->RootUser,
$errs['RootPW'] = 'and password';
continue;
}
- $wgDatabase->initial_setup( $conf->RootPW, $conf->DBtype );
+ $wgDatabase->initial_setup( $conf->DBname, $conf->DBuser, $conf->DBpassword );
}
echo( "<li>Attempting to connect to database \"{$wgDBname}\" as \"{$wgDBuser}\"..." );
$wgDatabase = $dbc->newFromParams(
}
} else { # not mysql
error_reporting( E_ALL | E_STRICT );
- $wgSuperUser = '';
## Possible connect as a superuser
// Changed !mysql to postgres check since it seems to only apply to postgres
if( $useRoot && $conf->DBtype == 'postgres' ) {
break;
}
}
- $wgDatabase->freeResult( $res );
if ( !$found && $conf->DBengine != 'MyISAM' ) {
echo "<li><strong>Warning:</strong> " . htmlspecialchars( $conf->DBengine ) .
" storage engine not available, " .
<div class="config-desc">
<p>No MS SQL Server specific options at this time.</p>
</div>
+ </fieldset>
<?php database_switcher('ibm_db2'); ?>