Wikia code/maintenance/update.php
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. The information shown below refers to the now unmaintained 1.16 MediaWiki release. The current stable release number is 1.43.0. |
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";