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.