Manual:getReplicaServer.php
Appearance
| MediaWiki version: | ≥ 1.28 |
| MediaWiki file: getReplicaServer.php | |
|---|---|
| Location: | maintenance/ |
| Source code: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Classes: | GetReplicaServer |
Details
[edit]getReplicaServer.php is a maintenance script that reports the hostname of a replica database server.
Options
[edit]| Option | Description | Required? |
|---|---|---|
| --group | Query group to check specifically | Optional |
| --cluster | Use an external cluster by name | Optional |
Usage
[edit]php maintenance/run.php getReplicaServer [ --group| --cluster ]
Terminal
$ php maintenance/run.php getReplicaServer replica1.serv.er
In MediaWiki version 1.43.6 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.