On Wed, Sep 17, 2008 at 2:06 PM, Hiram Clawson <hiram(a)soe.ucsc.edu> wrote:
Good Afternoon MediaWiki Fans:
I am puzzled by how update.php decides upon which database to
work on when it is run. I have a number of wikis that are created
merely by making symlinks for the top-level directories and
files (except LocalSettings.php) to a master source wiki. When
I run the update.php script in any of these sub-wikis the script
thinks it is working on the primary master source wiki database.
It doesn't seem to be reading the LocalSettings.php script to
fetch the database name. The script is operated thusly:
$ cd sub-wiki-directory
$ php maintenance/update.php
Any clarification would be much appreciated. Thanks,
--Hiram
$wgDBname controls which database is used; you should usually set it in
AdminSettings.php for maintenance scripts. You will have to set it to your
first database and run update.php, then set it to your second database and
run update.php, and so on (barring a more elegant method).