Sets up the storage backend currently selected in the "LocalSettings.php" file (or the default MySQL store if no other store was selected). This is equivalent to clicking the respective button on the special page Special:SemanticMediaWiki. However, the latter may timeout if the setup involves migrating a lot of existing data.
Note: If SMW is not installed in its standard path under ./extensions then the MW_INSTALL_PATH environment variable must be set. See README in the maintenance directory.
Usage: php setupStore.php [options...]
–delete Delete all SMW data, uninstall the selected storage backend. This is useful when moving to a new storage engine, and in the rare case of unsinstalling SMW. Deleted data can be recreated using this script (setup) followed by the use of the rebuildhData.php script which may take some time.
–backend The backend to use, e.g. SMWSQLStore3.
–skip-optimize Skips the table optimization process.
–skip-import Skips the import process.
–nochecks When specified, no prompts are provided. Deletion will thus happen without the need to provide any confirmation.
- Author
- Markus Krötzsch
-
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
James Hong Kong