Manual talk:Lock the database

From MediaWiki.org

Jump to: navigation, search
The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).

This really does not work for me! :(


I am trying to upgrade from 1.5.1 to 1.9.2. I cannot find either $wgReadOnly or $wgReadOnlyFile in my localsettings.php. Is this a new line I am supposed to be adding? Because the way I read it, it's supposed to already be there and I just add the reason. Furthermore, the alternative of locking mysql is even less helpful since I know even less about mysql. Some really simple, step by step, up to date, clear instructions that assume we don't know anything but without being insulting would be greatly appreciated. Natcolley 18:55, 17 March 2007 (UTC)

You need to add this line to your LocalSettings.php file:
$wgReadOnly='enter reason here'

Thunderhead 18:34, 3 September 2007 (UTC)

  • Make sure not to put it at the top of the file. It seems to work under the $wgSitename and $wgRedirectScript. --68.122.119.0 15:22, 26 January 2008 (UTC)

So what things i have to put to $wgReadOnlyFile in LocalSettings.php so i am able to use lockdb and unlockdb? --84.249.165.65 15:18, 19 April 2009 (UTC)