Manual:Rebuildall.php/ko

상세
rebuildall.php file is a maintenance script to rebuild the links and indices used for searching your site.

You should run this script after importing some data into your wiki. It will populate the categorylinks, pagelinks, and imagelinks tables and refresh the search index. It will not import or "register" images (even if they are in upload directory and there are articles referencing them). You should use the or  scripts to do this.

스크립트 사용
스크립트는 커맨드 라인 에서 실행해야 한다.

terminal이나 명령창을 열고, 위키의 서브 경로 maintenance 로 경로를 이동한다.

결과 예시
 php rebuildall.php

Dropping index... Clearing searchindex table...Done Rebuilding index fields for 1404 pages... 500 1000
 * Rebuilding fulltext search index (if you abort this will break searching; run this script again to fix):

Rebuild the index... Done.

Rebuilding $wgRCMaxAge=7776000 seconds (90 days) Clearing recentchanges table for time range... Loading from page and revision tables... Inserting from page and revision tables... Updating links and size differences... Loading from user, page, and logging tables... Flagging bot account edits... Removing duplicate revision and logging entries... Deleting feed timestamps. Done.
 * Rebuilding recentchanges table:

Refreshing redirects table. Starting from page_id 1 of 1405. 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 Refreshing links tables. Starting from page_id 1 of 1405. 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 Deleting illegal entries from the links tables... Checking interval (-INF, INF) pagelinks: 0, 2 deleted. imagelinks: 0 deleted. categorylinks: 0, 2 deleted. templatelinks: 0 deleted. externallinks: 0 deleted. iwlinks: 0 deleted. langlinks: 0 deleted. redirect: 0 deleted. page_props: 0, 5 deleted. Done.
 * Rebuilding links tables -- this can take a long time. It should be safe to abort via ctrl+C if you get bored.