4 * @subpackage Maintenance
8 require_once( "commandLine.inc" );
9 # print "DB name: $wgDBname\n";
10 # print "DB user: $wgDBuser\n";
11 # print "DB password: $wgDBpassword\n";
13 print "This is an example command-line maintenance script.\n";
15 $dbr =& wfGetDB( DB_SLAVE
);
16 $page = $dbr->tableName( 'page' );
17 $res = $dbr->query( "SELECT MAX(page_id) as m FROM $page" );
18 $row = $dbr->fetchObject( $res );
19 print "Max page_id: {$row->m}\n";