The Mediawiki markup text is stored in the old_text
field, which is a mediumblob type. You can query it like any other text-based field. MySQL will cast your string into binary for the query. Note that this is a case-sensitive search!
select old_id from text where old_text like "%string%";
If you need case-insensitivity then you need to apply an appropriate character set with a case-insensitive collation to the column:
SELECT old_id from text where CONVERT(old_text USING latin1) like '%STRing%';
Be aware that if your table isn't small these queries will take a long time.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…