3 * This script reports the hostname of a slave server.
9 require_once( dirname(__FILE__
).'/commandLine.inc' );
11 if ( $wgAllDBsAreLocalhost ) {
12 # Can't fool the backup script
17 if( isset( $options['group'] ) ) {
18 $db = wfGetDB( DB_SLAVE
, $options['group'] );
19 $host = $db->getServer();
22 $i = $lb->getReaderIndex();
23 $host = $lb->getServerName( $i );