3 * Rebuild link tracking tables from scratch. This takes several
4 * hours, depending on the database size and server configuration.
12 require_once( "commandLine.inc" );
14 #require_once( "rebuildlinks.inc" );
15 require_once( "refreshLinks.inc" );
16 require_once( "rebuildtextindex.inc" );
17 require_once( "rebuildrecentchanges.inc" );
19 $dbclass = 'Database' . ucfirst( $wgDBtype ) ;
20 $database = new $dbclass( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
22 if ($wgDBtype == 'mysql') {
23 print "** Rebuilding fulltext search index (if you abort this will break searching; run this script again to fix):\n";
24 dropTextIndex( $database );
25 rebuildTextIndex( $database );
26 createTextIndex( $database );
29 print "\n\n** Rebuilding recentchanges table:\n";
30 rebuildRecentChangesTable();
32 # Doesn't work anymore
33 # rebuildLinkTables();
35 # Use the slow incomplete one instead. It's designed to work in the background
36 print "\n\n** Rebuilding links tables -- this can take a long time. It should be safe to abort via ctrl+C if you get bored.\n";