Manual:ConvertLinks.php

ConvertLinks.php is a MediaWiki script located in the maintenance directory that Convert from the old links schema (string->ID) to the new schema (ID->ID). The wiki should be put into read-only mode while this script executes