Go to the source code of this file.
Variables | |
| $optionsWithArgs = array( 'b', 'user', 'password' ) | |
| no guarantees, but look in the usual place for commandLine.inc, so this so it will work most of the time | |
| global | $smwgDefaultStore |
| if(isset($options['user'])) if(isset($options['password'])) | $alternativestore = false |
| if(array_key_exists( 'b', $options)) global | $smwgIP |
| if (!isset($smwgIP)) | |
This is equivalent to clicking the respective button on the page Special:SMWAdmin. However, the latter may timeout if the setup involves migrating a lot of existing data.
Note: This is an older version of the setup script for people still using MediaWiki 1.16.x.
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 SMW_refreshData.php [options...]
-b <backend> Execute the operation for the storage backend of the given name -user <dbuser> Database user account to use for changing DB layout -password <dbpassword> Password for user account NOTE: specifying user credentials in a command line call will usually store them within the shell history file. For security, provide credentials in Adminssetings.php instead and ensure that your text editor does not create world-readable backup copies when modifying this file.
--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) and SMW_refreshData.php but this may take some time.
Definition in file SMW_setup_1.16.php.
| $optionsWithArgs = array( 'b', 'user', 'password' ) |
no guarantees, but look in the usual place for commandLine.inc, so this so it will work most of the time
Definition at line 45 of file SMW_setup_1.16.php.
| global $smwgDefaultStore |
Definition at line 49 of file SMW_setup_1.16.php.
Referenced by SMWSetupScript::execute(), and smwfGetStore().
| if (array_key_exists( 'b', $options)) global $smwgIP |
Definition at line 67 of file SMW_setup_1.16.php.
| if(!isset($smwgIP)) |
Definition at line 77 of file SMW_setup_1.16.php.
1.5.6