Jump to content

Wikia code/maintenance/update.php

From mediawiki.org

Merged one part of it here: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97526 There are still changes remaining below:

--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\maintenance\update.php	2011-07-18 22:30:28.450195300 +0100
+++ D:\Programming\SVN\wikia\trunk\maintenance\update.php	2011-08-17 15:05:34.847656200 +0100
@@ -28,7 +30,8 @@
 
 # Attempt to connect to the database as a privileged user
 # This will vomit up an error if there are permissions problems
-$wgDatabase = wfGetDB( DB_MASTER );
+//$wgDatabase = wfGetDB( DB_MASTER );
+$wgDatabase = new DatabaseMysql( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname, 1 );
 
 print "Going to run database updates for ".wfWikiID()."\n";
 print "Depending on the size of your database this may take a while!\n";