Manual:sqlite.php

From Linux Web Expert

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.35</tvar> is unsupported version</translate>">
1.16 – 1.35
<translate> MediaWiki versions:</translate>

Details

sqlite.php file is a maintenance script for tasks specific to SQLite backend. This script has been moved to SqliteMaintenance.php in MediaWiki 1.36.

Options/Arguments

Option Description Required?
--vacuum Executes VACUUM command that compacts the database and improves its performance. <translate> Optional</translate>
--integrity Performs integrity check of the database. If no error is detected, a single "ok" will be displayed, otherwise the script will show up to 100 errors. <translate> Optional</translate>
--backup-to Backups the database to the given file. <translate> Optional</translate>
--check-syntax Checks SQL files for compatibility with SQLite syntax. This option is intended for developer use. (Added in MediaWIki 1.17) <translate> Optional</translate>

All these options can be used at the same time.

Usage

php maintenance/sqlite.php [ --vacuum| --integrity| --backup-to| --check-syntax ]


Checking integrity

Terminal

Vacuum Operation

Terminal

See also