Steps to replicate the issue (include links if applicable):
- MariaDB 12.0.2
- Install MediaWiki 1.43.3 via webinstaller
What happens?:
The installation page it shows this error:
/mediawiki/mw-config/index.php?page=Install Wikimedia\Rdbms\DBReadOnlyError: Database is read-only: The primary database server is running in read-only mode.
The db query: SELECT @@GLOBAL.read_only AS Value
Result:
[rdbms] (bool)$row = 1
[rdbms] $row->Value = OFF
[rdbms] (bool)$row->Value = 1
OFF is returned, which is not recognized by MW as a boolean value
What should have happened instead?:
MediaWiki should not have detected the database as being in readonly mode
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
First reported on Discord: https://discord.com/channels/178359708581625856/1404036592527741049
MariaDB docs of read only variable
yes no, 0 1 are boolean values. ON and OFF are not documented to be booleans, but are apparently used as such by the variables system.